Remove a package marked as rc by dpkg

Posted by Joys of Programming on in dpkg, Linux, Ubuntu

There is a significant difference between dpkg –remove or –purge. dpkg –remove only the package binaries. The configuration files of the package are not deleted. Such packages normally have the state rc. Take for example, a package like usplash in our machine. The package’s configuration files are still part of the system.

$ dpkg --list usplash
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                 Version                              Description
+++-====================================-====================================-========================================================================================
rc  usplash                              0.5.49                               Userspace bootsplash utility

Let’s now purge the package usplash. dpkg –purge removes the configuration files and the binaries. Let’s see this with usplash

$ sudo dpkg --purge usplash
[sudo] password for abcde:
(Reading database ... 239395 files and directories currently installed.)
Removing usplash ...
Purging configuration files for usplash ...
Processing triggers for ureadahead ...

The package’s configuration files are now removed. Let’s co

Tags: , , ,

Comments:

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.