LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-21-2005, 05:03 PM   #1
stefanlasiewski
Member
 
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Rep: Reputation: 16
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
 
Old 08-21-2005, 07:47 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 08-23-2005, 11:37 AM   #3
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
You can try to pipe it to a file,

dpkg -l >> foo.txt

open foo.txt and look at the first 3 lines
 
Old 08-23-2005, 12:11 PM   #4
stefanlasiewski
Member
 
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Original Poster
Rep: Reputation: 16
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
 
Old 08-23-2005, 12:16 PM   #5
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
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.
 
Old 05-13-2009, 08:58 AM   #6
poswer
LQ Newbie
 
Registered: Jul 2008
Posts: 26

Rep: Reputation: 15
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
 
Old 05-13-2009, 09:33 AM   #7
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
aptitude purge ~c

if you wish to remove a package AND it's config files you should purge it, not remove it..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 17 12-01-2011 09:24 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
dpkg unable to access status area adamsjw2 Debian 3 02-06-2004 05:32 AM
What that 'rc' stands for? ivanatora Linux - General 2 11-26-2003 06:45 AM
dpkg rch Linux - Distributions 6 05-15-2003 08:25 AM


All times are GMT -5. The time now is 03:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration