LinuxQuestions.org
Review your favorite Linux distribution.
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
  Search this Thread
Old 02-23-2006, 10:52 PM   #1
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
How do I get rid of those "rc" packages? (As seen in dpkg -l output)


Sometimes I apt-get remove a package and it's gone. That is, I run "dpkg -l" and grep for it and it's not there anymore.

Other times, I remove a package but it's still there in the dpkg -l output -- only it has an "rc" in front of it. Why is it still listed there? Why isn't it completely gone from my system?

Just tonight I apt-get installed linux-image-2.6-k7, which happened to also upgrade my kernel. While that text was scrolling by during the update, some lines went by that said:
Code:
**************************************************************
* Please purge the hotplug package!
**************************************************************
Well, "apt-get remove --purge hotplug" tells me it's not installed. Yet, dpkg -l shows it there but with an "rc" in front of it. How can I "purge" hotplug?
 
Old 02-23-2006, 11:01 PM   #2
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
dpkg -P <package>
 
Old 02-23-2006, 11:09 PM   #3
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Original Poster
Rep: Reputation: 32
Thanks dracae. I see that's a synonym for "dpkg --purge package_name" from the dpkg man page.

But, I think what got me confused was, since "apt-get remove --purge package_name" failed, without thinking about it I guess I figured that dpkg would fail too (since, I'd assumed apt-get was a front-end for dpkg).

Looking more closely at it, I see that dselect is a front-end to dpkg, but I don't think apt-get is (a front-end for dpkg) after all.
 
Old 02-23-2006, 11:17 PM   #4
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Yes, apt is more of an extension of dpkg. I usually run this command from time to time
dpkg -l | grep ^rc | cut -d' ' -f3|xargs dpkg -P
 
Old 02-24-2006, 07:24 AM   #5
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Blog Entries: 8

Rep: Reputation: 15
Question

Quote:
Originally Posted by dracae
dpkg -l | grep ^rc | cut -d' ' -f3|xargs dpkg -P
Hi dracae, this is what I get, what's up with that ?
I'm kinda confused here

Code:
Package libgnomecupsui listed more than once, only processing once.
Package libnautilus-bu listed more than once, only processing once.
Package openoffice.org listed more than once, only processing once.
Package openoffice.org listed more than once, only processing once.
dpkg - warning: ignoring request to remove atlantikdesign which isn't installed.
dpkg - warning: ignoring request to remove bootsplash-the which isn't installed.
dpkg - warning: ignoring request to remove celestia-commo which isn't installed.
dpkg - warning: ignoring request to remove clamav-freshcl which isn't installed.
dpkg - warning: ignoring request to remove fglrx-kernel-2 which isn't installed.
dpkg - warning: ignoring request to remove gnome-applets- which isn't installed.
dpkg - warning: ignoring request to remove gnome-cups-man which isn't installed.
dpkg - warning: ignoring request to remove gnome-games-da which isn't installed.
 
Old 02-27-2006, 02:08 AM   #6
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Original Poster
Rep: Reputation: 32
Just run
Code:
dpkg -l | grep '^rc'
and have a look at what comes up.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 03:19 PM
Where to download rpm packages of "gocr" and "kooka" satimis Linux - Software 6 02-23-2006 11:35 PM
New to Ubuntu - can't figure out dpkg "kernel image" message for RT2500 install phaggood Ubuntu 1 02-09-2006 11:41 AM
When "function pointer" meets "template"... I can't get rid of this compiling er cyu021 Linux - Software 3 12-17-2004 07:52 PM
Where can I find the "make" & "cc" packages?? sayeed_ather Mandriva 2 04-28-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration