How to update on linux?

Hiya all,

I use Anki on Fedora KDE, using the official installation method on ankiweb. net. Anki is at ~/Applications/anki-24.06.2-linux-qt6.

I see that the latest version in 24.06.3, while I’m on 24.06.2. The instructions for upgrading say:

If you’re upgrading from a previous package, simply repeat the installation steps to upgrade to the latest version. Your user data will be preserved.

I’ve downloaded the latest qt6 release. How exactly should I update? Should I delete the folder for 24.06.2, then install 24.06.3?

I’m not sure what to do.

Thanks so much for any help.

Is there a reason why you installed the package from the website? It’s better to install using your system’s package manager, or using pipx. Manual installation is rather difficult.
See this article.

@tatsumoto, there is nothing particularly difficult about it: it is just an archive with files, one of which is executable. Like DOS and Windows users would do unless there is an installer.
You just need to know how to unpack an archive and how to start a file. Unless you have /home mounted with noexec, which is not the case here.

@tracker, it seems that you don’t know where your collection is located, which might mean that you haven’t done backups yet. Nothing custom is stored in the directory you created by unpacking the Anki package, so you can just start the new version, and even start an older version again. But you must make backups frequently even if you don’t update.

https://docs.ankiweb.net/files.html
https://docs.ankiweb.net/backups.html

I just run the ./uninstall.sh script in the folder of the previous release. Then I execute the ./install script of the new release :slight_smile:

Yes, of course. It is difficult to update the installed package. I recommended using a package manager because it automates everything. You install the package once, and then the package manager checks and installs updates without requiring manual interaction.

I use the package from the website because it is the official one, and the most up-to-date one. Also anki isn’t in the fedora repos.

Thanks. I exported my collection as a .colpkg file, which I think is the recommended way of backing up everything, including media. Is that right? Should I back up ~/.local/share/Anki2/User 1/ too?
@chrislg I did what you suggested, and I’ve successfully updated anki. Thanks.

1 Like

You can back up that folder if you wish. It includes your current add-ons and previous collection backups.

If I’m not mistaken, the package on PyPi is also official (i.e. uploaded by dae), although I think it doesn’t matter that much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.