Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-21-2005, 06:03 PM
|
#1
|
Member
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92
Rep:
|
dpkg -- what does a status of 'rc' mean?
Hey everyone,
I removed the packages php4 & php4-common from my system.
But when I type 'dpkg -l |grep php', it lists the 'php4-common' package, with an 'rc' in the Status column.
What does the 'rc' stand for? The configuration files are still installed on the system-- does the 'rc' refer to the configuration files?
Code:
# dpkg -l | grep php
rc php4-common 4.3.10-15 Common files for packages built from the php
I've been looking and looking, and can't find this information in the manpage, the dpkg webpage or anywhere else ('dpkg rc' is not a good search string).
Thanks,
-= Stefan
|
|
|
08-21-2005, 08:47 PM
|
#2
|
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046
Rep:
|
A status of 'rc' signifies that the package has been removed, but that the configuration files remain (afaik -- however I haven't been able to find any doc to double-check). You can use 'purge' as an option to either dpkg or apt to remove these files also, if you wish.
mj
|
|
|
08-23-2005, 12:37 PM
|
#3
|
Member
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368
Rep:
|
You can try to pipe it to a file,
dpkg -l >> foo.txt
open foo.txt and look at the first 3 lines
|
|
|
08-23-2005, 01:11 PM
|
#4
|
Member
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92
Original Poster
Rep:
|
Thanks yanik.
I tried that, but I don't see 'rc' listed anywhere in the first 3 lines.
dpkg is not a very user-friendly interface-- I guess if I stare at it hard enough, I can see that 'rc' means 'Remove' 'Config-files' or something-- but the meaning is not clear at all.
So in the output below-- I'm guessing that the package 'analog' was only partially removed, and the Config files remain.
Code:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii adduser 3.63 Add and remove users and groups
rc analog 5.32-14 analyzes logfiles from web servers
|
|
|
08-23-2005, 01:16 PM
|
#5
|
Member
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368
Rep:
|
There are 3 fields. The first one is the called Desired, the second Status and the last one is Error.
Your first letter is r, thus the package is Removed
Your second letter is c, thus your config files are still there.
You don't have a third letter, thus no error.
|
|
|
05-13-2009, 09:58 AM
|
#6
|
LQ Newbie
Registered: Jul 2008
Posts: 26
Rep:
|
how to remove package completed dpkg -rc
i installed nis server i made a mistake so remove package but still some configuration file there so how to remove nis package completely
dpkg -l status
rc nis 3.17-12ubuntu1 Clients and daemons for the Network Informat
|
|
|
05-13-2009, 10:33 AM
|
#7
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
aptitude purge ~c
if you wish to remove a package AND it's config files you should purge it, not remove it..
|
|
|
All times are GMT -5. The time now is 12:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|