How to remove a deb package manually


Some times when you install a new deb package, the system will be broken. We may have to remove the package.
For this , you can try the following. ( Assuming aspell is the broken package)

# apt-get remove aspell

#dpkg -P aspell

#dpkg –force-all -r aspell

These methods can also fail some time. Your only way out will be a manual removal of packages, which can be achieved as detailed below.

a) Get a list of files from the package

# # dpkg -L aspell

b) Remove the files one by one.

c) It is also suggested that you run

# apt-get remove aspell

after manual removal.

Related posts:

  1. Tip: Generate A List of Installed Packages For Easy Reinstall
  2. Manually Configure Ubuntu Networking
  3. Use an Ubuntu Live CD to Wipe Any Harddrive
  4. Searching Ubuntu filesystem with (m)locate
  5. Install RSSOwl 2.0.1 in Ubuntu 9.10 Karmic

Read more at Experimenting with GNU/Linux.