echo package-name hold sudo dpkg -set-selections Using Aptitude. This is useful if you want to see what packages are available for an upgrade before you actually upgrade them. sudo apt-mark hold package-name Using Dpkg Command. The apt update command will update the list of available packages and their versions. apt : Interactive and recommended command for all users. dpkg : Debian packaging tool which can be use to install, query, uninstall packages. For scripting purpose apt-get is perfect tool. To do this, open a terminal and type the following commands: You can also upgrade all packages in a single operations, which makes it even more attractive. The quickest and easiest way to keep Ubuntu up to date is via the command line. To keep Ubuntu up to date using the GUI, use the Software Updater application. To keep Ubuntu up to date via the command line, use the apt update and apt upgrade commands. The GUI is the preferred method for casual users. The command line is the preferred method for experienced users and system administrators. There are two ways to keep Ubuntu up to date: via the command line or using the graphical user interface (GUI). If you wish to install the package if it doesn’t exist, or upgrade it if it does, you may leave out -only-upgrade. Uninstalling unnecessary applications: Unnecessary applications should be uninstalled to free up disk space and reduce the attack surface of the system. This will upgrade only that single package, and only if it is installed.Check if the package you want to upgrade is in the list of upgradable packages. Keeping applications up to date: Applications should be kept up to date to ensure that they are secure and have the latest features. Especially if your Ubuntu system directly faces the Internet. Upgrade single package using apt command The first step is to update the local package repository cache so that your system knows about the availability of new package versions.Installing applications from trusted sources: Applications should be installed from trusted sources, such as the Ubuntu Software Center, to ensure that they are safe and free of malware.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |