apt purge removes everything related to a package including the configuration files.apt remove just removes the binaries of a package.The command is used in the following manner: sudo apt purge What is the difference between apt remove and apt purge? So you just start typing package name and press tab and it will suggest all the installed packages starting with those letters.Īnother way of uninstalling packages is to use purge. Suppose you want to install mplayer, you can simply use the command below: sudo apt install mplayerĪuto-completion works here as well. Just replace the with the desired package. If you already know the name of the package, you can install it using the command below: sudo apt install This is the reason why the fastest and the most convenient way to update Ubuntu system by using this command: sudo apt update & sudo apt upgrade -y How to install new packages with apt When you do an apt upgrade after apt update, it upgrades (or updates, whichever term you prefer) the installed packages to the newer version. apt update only updates the database of the packages.įor example, if you have XYZ package version 1.3 installed, after apt update, the database will be aware that a newer version 1.4 is available. Though it sounds like when you do an apt update, it will update the packages and you’ll get the latest version of the package. What is the difference between apt update and apt upgrade? Whereas, the normal upgrade command won’t do this. There is another way to provide a complete upgrade by using the command below: sudo apt full-upgradeįull-upgrade works the same as upgrade except that if system upgrade needs the removal of a package already installed on the system, it will do that. Using apt commands to manage packages in Debian and Ubuntu based Linux distributions I have already explained the difference between apt and apt-get in a previous article along with why apt was introduced in the first place, therefore, I will not get into the details again. But apt is slowly promoted as its alternative. You can use it to find and install new packages, upgrade packages, remove the packages etc.Īpt commands provide command line way to interact with APT and manage packages.Īt this point, I must mention apt-get is perhaps the most popular tool around APT. But APT is a more friendly way to handle packaging. There is already dpkg commands to manage it. APT (Advanced Package Tool) is the command line tool to interact with the packaging system in Debian-based Linux distributions. This way, you don’t have to build a program from the source code which, trust me, is not a pretty way to handle packages. A packaging system is a way to provide programs and applications for installation. What is apt?ĭebian Linux uses dpkg packaging system. In this guide for Linux beginners, I am going to explain you various apt commands with examples so that you can use them as an expert Linux user. As more and more Ubuntu based Linux distributions are pushing for apt to be the recommended command for package management, it is time that you learn how to use apt commands. If you are using Debian, Ubuntu, Linux Mint or any other Debian or Ubuntu based distributions, you must have come across some apt commands by now.įirst noticed in Ubuntu 16.04, apt is slowly gaining popularity. Brief: This article shows you how to use apt commands in Linux with examples so that you can manage packages effectively.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |