This command removes ‘.deb’ files for packages that are no longer installed on your system. Use the below command which gives package dependencies, version, installation size, packages source, etc.ĭepends: libc6 (>= 2.14), libncursesw5 (>= 5.6+20070908), libtinfo5, dpkg (>=īreaks: alpine-pico ( 9) How to clear apt cache To know the detailed information about a package before proceeding with the installation. P gadmin-proftpd-dbg:i386 - GTK+ configuration tool for proftpd debug 8) Check package information P gadmin-proftpd-dbg - GTK+ configuration tool for proftpd debug P gadmin-proftpd:i386 - GTK+ configuration tool for proftpd P gadmin-proftpd - GTK+ configuration tool for proftpd P ftpd-ssl:i386 - FTP server with SSL encryption support P ftpd-ssl - FTP server with SSL encryption support P ftpd:i386 - File Transfer Protocol (FTP) server P ftpd - File Transfer Protocol (FTP) server For example, run the following command to search the list of packages related to ftp: $ sudo apt search ftpd If you do not know the exact package name you want to install, use the search command that returns the matching string. ‘full-upgrade’ works the same way as upgrade, but it also removes the installed packages if needed to perform system upgrades: $ sudo apt full-upgrade 7) Searching packages To upgrade a single package, run the below command instead: $ sudo apt install - only-upgrade package_name 6) How to use full-upgrade Run the following command to upgrade all the installed packages to their latest versions, but existing package won’t be removed: $ sudo apt upgrade The ‘autoremove’ command removes all unwanted dependencies left on the system: $ sudo apt autoremove 5) Upgrading packagesĪvailable updates must be installed regularly to keep the system up-to-date and secure. Unused dependency packages remain on the system whenever any package is removed using the ‘remove’ or ‘purge’ command, that are no longer needed by the system. Whenever a new package is installed on the system that installs related dependencies. To remove a package and its associated configuration files, use the following command instead: $ sudo apt purge package_name 4) Removing unused packages The ‘remove’ command will uninstall the given package, but it may leave some configuration files in the system. Run the following command to update the package database, which pulls the updated package records from the APT repositories: Main apt source repositories configuration fileĪpt additional software repositories configuration locationĪPT package index is a database that contains information of available packages from various repositories enabled in the system. Important ‘apt’ configuration files are as follows: File Name General syntax of ‘apt’ command is as follows: apt. Common syntax & file location of apt command Refer the following article to know the difference between apt vs apt-get command. In this tutorial, we will show you how to use apt commands to manage packages in Debian and Ubuntu based Linux distributions. apt was designed to fix some of the fundamental dependency flaws in apt-get.Īfter Ubuntu 16.04 release, the ‘apt’ command grabbed attention of the users, than the traditional ‘apt-get’ command. ‘apt’ command is suitable for end users and does not contain some of the additional features of apt-get command. This is because the apt command integrates the functions of apt-get, apt-cache & apt-config along with essential commands in a well organized manner. ‘apt’ is a command line utility for installing, updating, and removing deb packages on Ubuntu, Debian, and their derivatives.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |