Tuesday, May 1, 2012

Ubuntu Uninstall deb Package

How do I uninstall deb packages under Ubuntu Linux using GUI or CLI (command line) methods?

Type the following command at shell prompt to uninstall any installed package (open a terminal and enter command)
sudo apt-get remove pakcageName
To remove a package called samba-common-bin, enter:
sudo apt-get remove samba-common-bi
Sample outputs:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
nautilus-share samba-common-bin
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
After this operation, 13.8MB disk space will be freed.
Do you want to continue [Y/n]?

How Do I Find Out List Of ALL Installed Packages?

Type the following command:
dpkg --list
dpkg --list | grep -i apache

GUI Tool

The Synaptic Package Manager enables you to install software onto your computer and to manage the software, that already installed. You can delete or remove package with this tool. To start this tool:
Click on System > Administration > Synaptic Package Manager
Ubuntu Synaptic Package Manager Remove Package
Fig.01:Ubuntu Synaptic Package Manager Remove Package

To remove a packages follow these steps

  1. Double click on the name of the installed package in the package list.
  2. Click on the status icon of the package and choose Mark for Removal from the menu.
    OR
    Right click on the package and choose Remove from the context menu.
    OR
    Select the package and press the key Delete.
  3. If the removal of the package(s) requires additional changes, you will be asked for confirmation. To also mark the additional changes click on the button Mark. Apply the marked changes to actually remove the package(s) so Click on Apply in the toolbar. You are asked for confirmation. Check the summarized changes that will be applied. To continue with the actual removal confirm the changes click on Apply. During the processing of the changes you will see a progressbar. Wait until the changes have been applied. This can take some time depending on the number of changes. Afterwards you will be returned to the main window.

No comments:

Post a Comment