The easiest to manage installation,upgradation and uninstallation APT is the command used in all the linux based operating systems. APT stands for Advance Packaging Tool. To install or remove packages one must have root user permissions. So user should be a sudoers or one must be logged in as a root user.
Obviously an internet connection is required for anyone to update the packages or install new ones. A point to note is that one cannot perform multiple installation at the same time.
APT keeps a url from where to get the software in the file located at:
|Content of file sources.list|
Before installing anything new lets update our list. The command for the same is apt-get update.
Installing a package with apt-get
We will for example will install and uninstall a package called motion.
Typing the following command will prompt user for confirmation and will also provide disk usage information.
Say yes and confirm the installation. Now we will move forward to removing the installed package of motion.
Removing a package with apt-get
We will now completely remove the package and its dependencies using command purge.
This will remove the package and all associated configuration files. The user is prompted for removal. Another similar command is the remove command which can be used to uninstall a package