Learn apt-get Package Handling Utility In Ubuntu
Dear unixmen reader,
In this tutorial you will learn about the apt-get command-line tool which is considered the user’s “back-end” to other tools using the APT library for handling packages.
It has many useful options that help the user to update the machine, upgrade, install new software, manage software and remove packages when the user wants.
I use the apt-get command almost all the time to keep my Ubuntu system updated and to make sure it has every tool I need for my tasks. If I want to play a game, install a math program or edit a video the apt-get command-line utility helps me to install the proper package.
The Advanced Packaging Tool (APT) is rapid, very practical, it takes care of package dependencies automatically and also takes care of their configuration files while upgrading.
No need to worry about the dependencies. Get a hot coffee and drink it like a boss while apt-get builds the dependency tree for the package which is going to be installed.
In the old days of Linux and before the apt came to life people had to use. tar.gz and compile the software they wanted to install on their Gnu/Linux machines. But this was very boring and time consuming so when Debian system was created the developers saw it necessary for the system to include a method of managing the packages installed on the machine.apt-get
So they created a system for managing the packages and called it dpkg. But this package manager for Debian based system did not make everybody happy. It can only build, install and remove Debian packages. I am pretty sure you are very familiar with the dpkg tool if you have installed .deb packages in your system.
A fast and efficient package manager that would manage dependencies automatically and take care of their configuration files while upgrading was needed. A new dilemma came for makers of Gnu/Linux.
After alot of hard work, passion and dedication they gave birth to APT, the Advanced Packaging Tool that each of us uses nowadays to manage, install and remove packages.
Learn To Use apt-get Command-Line Tool
The first thing you do after a fresh installation of a Linux distro is installing software. The following command will help you install packages in Ubuntu and other Debian based systems.
sudo apt-get install package-name
If you like to remove a package you can do it with the following command.
sudo apt-get remove package-name
But the apt-get remove command does not delete the package. It only removes it. To delete the package and its configuration file you need to run the following command.
sudo apt-get purge package-name
You can also install a list of packages as a space delimited list. It can easily be done with the following command.
sudo apt-get install package1 package2 package3
A very useful command i apt-cache which can be used to search for a package you are looking for. If you use the apt-get command with a package the does not exist in the default repositories it will give you an error and the specified package will not be installed. So, it is always good to do a search for the package before you run the apt-get install command and install it in your own machine.
Use the following command to search for a package you want to install with the apt-get utility.
sudo apt-cache search package-name
Now that you know how to install and remove packages you need to learn how to get the latest packages in Ubuntu or Debian based machines.
sudo apt-get update
The above command resynchronize the package index files from their sources so you can stay updated with information about new and updated packages.
Like us on Facebook
We need your assistance to stay live
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Fedora 21 Scheduled For Release In October : For Fedora users, just keep calm and use Fedora 20 for now. Fedora Developers has announced that F...1 comment |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install LAMP Server (Apache, MySQL or MariaDB, PHP) On Ubuntu 13.10 : Updated January 12, 2014 LAMP is a combination of operating system and open-source software stack. ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- DNS Server Installation Step by Step Using CentOS 6.5/6.4/6.3 : DNS, Domain Name System, translates hostnames or URLs into IP addresses. For example if we type www....0 comments |
- Fedora 21 Scheduled For Release In October
- Install Uget Download Manager In Ubuntu, Fedora, Debian
- Download Elementary OS ‘Luna’ Official Wallpapers
- Install Power Commands 0.1.5 On Ubuntu 14.04/13.10/12.10/12.04
- 5 Android Apps that’s Going to Make Running Your Business Less Stressful
- Puppet agent Install Using Script
- Install Corosync and Pacemaker On CentOS 6.5
- Install Fail2Ban On Ubuntu Server 13.04/13.10
- How To Install Google Chrome in Fedora 20, 19, 18
- How to surf using Tor Browser Bundle
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .