Learn how to install python-apt with the command sudo apt-get install python-apt on Ubuntus.
Ads
Quick installation of python-apt:
Step 1: Update system:
sudo apt-get update
Step 2: Install: python-apt
Ater updaing the OS run following command to install the packae:
sudo apt-get install python-apt
Package Details | |
Package: | python-apt |
Version: | 0.8.3ubuntu7.3 |
Maintainer: | Ubuntu Core Developers |
Home page: | |
Description: | Python interface to libapt-pkg The apt_pkg Python interface will provide full access to the internal libapt-pkg structures allowing Python programs to easily perform a variety of functions, such as: . - Access to the APT configuration system - Access to the APT package information database - Parsing of Debian package control files, and other files with a similar structure . The included 'aptsources' Python interface provides an abstraction of the sources.list configuration on the repository and the distro level. Multi-Arch: allowed Python-Version: 2.7 |
Distro: | Ubuntu 12.04 LTS |
Release: | |
Repo/Section: | python |
First of all update your system with the command:
sudo apt-get update
Ads
Above command will download the package lists for Ubuntu 12.04 LTS on your system. This will update the list of newest versions of packages and its dependencies on your system.
After downloading the latest package list with the help of above you can run the installation process.
If python-apt is not installed on your compter then the command 'dpkg -L python-apt' will give followin error.
Installing python-apt:
After system update use the following command to install python-apt:
sudo apt-get install python-apt
Above command will confirm before installing the package on your Ubuntu 12.04 LTS Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.
Now we will see the commands for uninstalling the python-apt from Ubuntu 12.04 LTS. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.
To remove the python-apt following command is used:
sudo apt-get remove python-apt
Following command is used to remove the python-apt package along with its dependencies:
sudo apt-get remove --auto-remove python-apt
This will remove python-apt and all its dependent packages which is no longer needed in the system.
Completely removing python-apt with all configuration files:
Following command should be used with care as it deletes all the configuration files and data:
sudo apt-get purge python-apt
or you can use following command also:
sudo apt-get purge --auto-remove python-apt
Above command will remove all the configuration files and data associated with python-apt package. You can can't recover the delete data, so, use this command with care.