LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Remove Extra Packages (https://www.linuxquestions.org/questions/debian-26/remove-extra-packages-334795/)

nistelrooy 06-18-2005 01:37 AM

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#


makuyl 06-18-2005 02:36 AM

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`

nistelrooy 06-18-2005 02:39 AM

wow this way much better than dpkg.

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

thanks!

Tons of Fun 06-18-2005 06:23 AM

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,

:study:

makuyl 06-18-2005 10:45 AM

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?


All times are GMT -5. The time now is 09:33 AM.