LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-18-2005, 01:37 AM   #1
nistelrooy
Member
 
Registered: Oct 2003
Location: Singapore
Distribution: debian
Posts: 162

Rep: Reputation: 30
Remove Extra Packages


Hi

I was wondering how do i know what packages do i need to remove infuture during my removal of nessus? Because if i were to just do 'apt-get remove nessus', only nessus would be removed, and, the extra packages that comes along such as defoma, fontconfig, libatk1.0-0, libfontconfig1 libdg-gif1, and etc will not be taken away.


Is there such a command to list the entire packages on your system? How do i identify useless packages?



Code:
xserve:/home/peon/psybnc# apt-get install nessus
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  defoma fontconfig libatk1.0-0 libfontconfig1 libgd-gif1 libglib2.0-0
  libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libnessus2 libpango1.0-0
  libpango1.0-common libxcursor1 libxft2 libxi6 libxrandr2 libxrender1
  ttf-bitstream-vera
Suggested packages:
  defoma-doc psfontmgr x-ttcidfont-conf dfontmgr ttf-kochi-gothic
  ttf-kochi-mincho ttf-thryomanes ttf-baekmuk ttf-arphic-gbsn00lp
  ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp nessusd
Recommended packages:
  libft-perl libatk1.0-data libglib2.0-data hicolor-icon-theme
The following NEW packages will be installed:
  defoma fontconfig libatk1.0-0 libfontconfig1 libgd-gif1 libglib2.0-0
  libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libnessus2 libpango1.0-0
  libpango1.0-common libxcursor1 libxft2 libxi6 libxrandr2 libxrender1 nessus
  ttf-bitstream-vera
0 upgraded, 19 newly installed, 0 to remove and 6 not upgraded.
Need to get 0B/7428kB of archives.
After unpacking 19.9MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
xserve:/home/peon/psybnc#
 
Old 06-18-2005, 02:36 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You can do that with deborphan which takes care of orphaned packages. I usually do after every other dist-upgrade:
deborphan > orpls
apt-get --purge remove `cat orpls`
 
Old 06-18-2005, 02:39 AM   #3
nistelrooy
Member
 
Registered: Oct 2003
Location: Singapore
Distribution: debian
Posts: 162

Original Poster
Rep: Reputation: 30
wow this way much better than dpkg.

i was exploring dpkg and found the list of packages too.

thanks!

Last edited by nistelrooy; 06-18-2005 at 02:42 AM.
 
Old 06-18-2005, 06:23 AM   #4
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382

Rep: Reputation: 37
When I run deborphan, it want's to remove java. Is there a way to pin java so it will not be remove when running deborphan? I would like to clean out unused packages, but don't want java removed.

Thanks,

 
Old 06-18-2005, 10:45 AM   #5
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You could put it on hold: http://www.debian-administration.org/articles/67
Pin it down: http://www.debian.org/doc/manuals/ap....en.html#s-pin
Or just remove the line from orpls before removing the files.

How did you install java?
 
  


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
How to install extra packages??? Da_riPPer Linux - Newbie 1 08-11-2005 03:54 PM
using yum for extra packages beowulf405 Fedora 1 06-21-2004 11:40 PM
how to remove packages Longinus Linux - Newbie 6 04-25-2004 06:53 PM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM
Cannot Remove Packages!! sbb Linux - Newbie 1 08-22-2003 11:12 AM

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

All times are GMT -5. The time now is 11:42 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