![]() If you are managing an Ubuntu server and you don’t want to upgrade all the packages but only one of a few selected ones (like MySQL/Ngnix), you can do that easily with the apt command. Running an upgrade simulation with apt command Upgrade only the selected packages The apt command tells you how many packages can be upgraded at the end of the update command: So, to list all the upgradable packages on your Ubuntu or Debian system, you should update the local package cache first: sudo apt updateĪnd then your system will be aware of the available package updates. In other words, it works with apt packages only. So, if you have added PPAs or external repositories to your system’s sources.list, you’ll see the updates from them.īut you won’t get updates for AppImage, Flatpak, Snap or some other packaging formats here. What you should know here is that you only get to list the updates available through the APT package manager. Let’s talk about it in a bit more detail. That’s one of the several new features apt has added on top of the older apt-get command. I don’t recall any similar direct option in the older apt-get command to list all the upgradable packages. Fetched 1,243 kB in 17s (71.4 kB/s)ģ0 packages can be upgraded. In fact, the apt command adds this hint when you run the sudo apt update command to update the local package repository cache. It just lists the packages that can be updated. And to display them, all you have to do is to use this command in the terminal: apt list -upgradableĪs you can notice, you don’t even need sudo to list the updatable packages. One of them is the ability to see all the upgradable packages on your system. While you are probably already familiar with the install and remove options, apt provides a few extra features as well. The apt command is used for package management in Debian and Ubuntu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |