LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-19-2011, 09:30 AM   #1
gujedan
Member
 
Registered: Oct 2010
Posts: 121

Rep: Reputation: 1
how can i remove a package that is a dependency without removing anything else


ex: package A depends on package B, C and D

I want to remove only C and D and leave A in a broken state. how?
 
Old 03-19-2011, 10:07 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
dpkg -r --force-all pkgname
 
Old 03-20-2011, 05:05 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
Quote:
Originally Posted by andrewthomas View Post
dpkg -r --force-all pkgname
Andrew, One question please:
If he removes packages C and D using dpkg, then the next time he updates Debian, won't APT try to reinstall packages C and D, since they are dependencies of package A?
 
Old 03-20-2011, 05:32 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,188

Rep: Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540
# 3 : Next time 'apt-get install' or Synaptic is used :

Package A will be removed.
 
1 members found this post helpful.
Old 03-20-2011, 05:55 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
Quote:
Originally Posted by knudfl View Post
# 3 : Next time 'apt-get install' or Synaptic is used :

Package A will be removed.
OK, thanks!
I knew that APT would likely try to fix this dependency issue somehow.
 
  


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
dpkg can't remove a package, dependency problems AncientPC Linux - Newbie 6 05-14-2010 03:45 PM
Remove dependencies when removing a package kushalkoolwal Debian 6 06-28-2007 02:53 PM
removing a package without dependency checking whitesuit Debian 1 10-25-2006 12:13 AM
Nvu package dependency kermit Linux - Software 5 01-11-2005 09:45 AM
There was a package dependency problem Kensai Fedora 3 02-15-2004 06:02 PM

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

All times are GMT -5. The time now is 03:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration