apt (Advanced Package Tool) is the most frequently used command in Debian-based Linux distribution system. It provides command-line tool to search, install, remove, update or to manage packages which are downloaded from different software repositories. apt command ensures the package dependencies effectively while installing, upgrading and downgrading the packages. When you use apt command you will see the progress bar and also get to know the number of packages can be updated. In this post, we are going to see usage of apt commands with examples.
Note: you need to update the package first to execute upgrade command below.
List the up-gradable packages details before upgrading packages.
$ sudo apt list –upgradable
4. apt full-upgrade
Full-upgrade performs the function of upgrade but will remove currently installed packages if this is needed to upgrade the system as a whole.
$ sudo apt full-upgrade
5. If you know the package name, following command to install a New Packages.
$ apt list | grep vlc
To list installed packages only.
$ sudo apt list –installed
7. Show package information
Below command shows the information of given package including dependencies, installation, size, source and description of the packages.
8. Edit source information file /etc/apt/sources.list
$ sudo apt search vlc
Conclusion: In this tutorial, apt commands with examples for Debian and Ubuntu New users. To know more about apt command, type “man apt” from command prompt. Big thanks for reading all the way to the end. Please share it with Your Friends & Help Someone… and also like our facebook page. Let me hear your thoughts in the comments below!