LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-15-2015, 12:42 AM   #1
oremora
Member
 
Registered: Sep 2015
Location: Texas
Distribution: Debian
Posts: 51

Rep: Reputation: Disabled
Unused packages


Hello people, I was just wondering if there was a way to check what packages or libraries are not being used by anything and are safe to remove without breaking anything else. I appreciate any help.
 
Old 09-15-2015, 02:35 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I know how you could check an individual package but not every installed package. Here's a test I did to see if the libgcc1 package is being used.
Code:
~$ aptitude -s remove libgcc1
The following packages will be REMOVED:  
  libgcc1 
0 packages upgraded, 0 newly installed, 1 to remove and 15 not upgraded.
Need to get 0 B of archives. After unpacking 108 kB will be freed.
The following packages have unmet dependencies:
 dvd+rw-tools : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libglademm-2.4-1v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 growisofs : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libresid-builder0c2a : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libhunspell-1.3-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libboost-system1.55.0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libmatroska6v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqapt3 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libcdr-0.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt5concurrent5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 kget : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libplatform1.0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 qt5-qmake : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libcrystalhd3 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 liblua5.1-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libkimap4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libodfgen-0.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 pulseaudio : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 apt : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libdrumstick0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libjack-jackd2-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libboost-thread1.58.0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 asymptote : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libasan0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libasan1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libasan2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libfam0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-xml : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgloox13v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 mysql-server-core-5.5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libtag1v5-vanilla : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libcwidget3v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libakonadi-kcal4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 gdisk : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libmagick++-6.q16-5v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-network : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 wpagui : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libopencv-ml2.4v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwpg-0.3-3 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-sql-mysql : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libmailtransport4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 printer-driver-dymo : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libportsmf0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libpangomm-1.4-1v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libopencv-calib3d2.4v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 kde-runtime : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 gstreamer0.10-plugins-good : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 liblastfm1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqjson0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libcec3.0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libchromaprint0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libtag-extras1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 qtchooser : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 kdepimlibs-kio-plugins : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 unrar : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libatkmm-1.6-1v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 aspell : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libakonadiprotocolinternals1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libbalooxapian4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 akonadi-server : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-sql : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqca2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libexiv2-14 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libblas3 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqpdf13v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libestools2.4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libaspell15 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libubsan0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libvisio-0.1-1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 python-qt4-dbus : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 cdrdao : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libx265-31 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 rss-glx : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 smartmontools : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libibus-qt1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libasprintf0v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 praat : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libbalooqueryparser4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwebrtc-audio-processing-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libutvideo15 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libopencv-highgui2.4v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libstk0c2a : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 qdbus : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libakonadi-notes4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 gnome-system-monitor : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 python-numpy : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 audacity : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 google-chrome-stable : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgexiv2-2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libx265-59 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtcore4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 procinfo : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-qt3support : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libicu52 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libicu55 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libkcddb4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-svg : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libharfbuzz-icu0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libmusicbrainz5-2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libmspub-0.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-xmlpatterns : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 vlc-nox : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libopenexr6v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-sql-sqlite : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgpgme++2v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgc1c2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 soprano-daemon : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libnvtt2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libjavascriptcoregtk-3.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-opengl : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libsoprano4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libdbusmenu-qt2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 qtbase5-dev-tools : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libtsan0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libcln6 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwebkitgtk-1.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libllvm3.5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 ecasound : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgl1-mesa-dri : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 apt-utils : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libkf5threadweaver5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libebml4v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtgstreamer-1.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 python3-pyqt4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libcilkrts5 : Depends: libgcc1 (>= 1:4.8) but it is not going to be installed.
 librevenge-0.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 python-xapian : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwpg-0.2-2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtgstreamerutils-1.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 p7zip-full : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libossp-uuid16 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libbs2b0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 paprefs : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtassistantclient4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libxerces-c3.1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 groff-base : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 kdelibs5-plugins : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 kcalc : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 liborcus-0.6-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtwebkit4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-script : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libsyndication4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgconfmm-2.6-1v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 mjpegtools : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 python-apt : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libvisual-0.4-plugins : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 ruby-debian : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libopencv-imgproc2.4v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libkf5khtml5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 kaffeine : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libbasicusageenvironment0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libbasicusageenvironment1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libvisio-0.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libmozjs-24-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgroupsock4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgroupsock7 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 liblinear1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libkf5balooxapian1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 menu : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt5core5a : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libpcrecpp0v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libc6 : Depends: libgcc1 but it is not going to be installed.
 libgjs0e : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 opera-developer : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 gwenview : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libopencv-flann2.4v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 baloo-kf5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libflac++6v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 ste-plugins : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libtracker-sparql-1.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 liblapack3 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libakonadi-contact4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 w64codecs : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libapt-inst1.5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libopencv-legacy2.4v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 nmap : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libapt-inst1.7 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgme0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgtkmm-2.4-1v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqextserialport1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 cups : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 mesa-vdpau-drivers : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 stellarium : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqalculate5v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 gmlive : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libvpx2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libboost-system1.58.0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 wkhtmltopdf : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libenchant1c2a : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtscript4-gui : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libtxc-dxtn-s2tc0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libcec2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libkf5filemetadata-bin : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libsmokeqtgui4-3 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 kodi-bin : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libjsoncpp0v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 0ad : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libschroedinger-1.0-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 iceweasel : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 packagekit : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libboost-program-options1.55.0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libsidplay1v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 calibre-bin : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libgmpxx4ldbl : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 lshw-gtk : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libquazip1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libsmokeqtcore4-3 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwxbase3.0-0v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 amule : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libraw10 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 printer-driver-hpijs : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 pavumeter : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 openjdk-7-jre-headless : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libdbusmenu-qt5-2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt5xmlpatterns5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libcc1-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libsvm-tools : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libilmbase6v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 qpdf : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 inkscape : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 qttools5-dev-tools : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwxbase2.8-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libtexluajit2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtscript4-network : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libpackagekitqt4-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 ibus-qt4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtwebkit-qmlwebkitplugin : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libfreeimage3 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwxgtk3.0-0v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libmwaw-0.1-1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtlocation1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 stk : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 pepperflashplugin-nonfree : Depends: libgcc1 but it is not going to be installed.
 libwpd-0.10-10 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libpgf6 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt5test5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libkjsembed4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 subtitleeditor : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 cups-filters-core-drivers : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libpodofo0.9.0v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libxatracker2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwps-0.2-2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libakonadi-kmime4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqt4-designer : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libfollowupreminder4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwpd-0.9-9 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libexempi3 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libqtdbus4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libboost-iostreams1.54.0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 cmt : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libkhtml5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libkmime4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libakonadi-calendar4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libprison0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libopencv-features2d2.4v5 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libsendlater4 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libntrack-qt4-1 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 ........... I have removed much of this text for space reasons.
 pinball : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 kdepim-runtime : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 gstreamer0.10-plugins-ugly : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libtbb2 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
 libwxgtk2.8-0 : Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libgcc1 [1:5.2.1-16 (now, testing)]                



Accept this solution? [Y/n/q/?
As you can see, a lot of packages depend on libgcc1. The first "solution" offered by aptitude is not to remove libgcc1.
jdk
 
Old 09-15-2015, 03:07 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Code:
apt-get autoremove
will remove any packages that are marked as 'auto-installed' and don't have any currently installed packages depending on them.

'deborphan' is another tool that looks for 'orphaned' packages.
Maybe also the 'cruft' package.

Or use the aptitude ncurses interface to browse through all the installed packages and look for yourself (and see what would happen by toggling them for removal).
 
Old 09-15-2015, 06:33 AM   #4
Phiebie
Member
 
Registered: Oct 2004
Location: Austria
Distribution: Debian testing
Posts: 114

Rep: Reputation: 17
Quote:
Originally Posted by descendant_command View Post
Code:
apt-get autoremove
will remove any packages that are marked as 'auto-installed' and don't have any currently installed packages depending on them.
Well, if you have a *complete* backup of your system, you can try this... and afterwards you'll surely invent some neverbefore heard swearings.
The problem is, that autoremove will get rid of socalled metapackages, implying that all underlying packages will also be removed!
The best way indeed is to let deborphan look after those not-needed packages and then remove them - just to be sure - via aptitude via the -option. When, after a week or so, you have not experienced any problems, start aptitude again and have it look after orphaned config-files/settings (~c). Why the waiting? If you have by chance to reinstall one of those deleted packages, you need not configure them again.
 
Old 09-15-2015, 07:05 PM   #5
oremora
Member
 
Registered: Sep 2015
Location: Texas
Distribution: Debian
Posts: 51

Original Poster
Rep: Reputation: Disabled
Thanks all, deborphan did just the trick.
 
Old 10-16-2015, 08:01 AM   #6
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by Phiebie View Post
The problem is, that autoremove will get rid of socalled metapackages, implying that all underlying packages will also be removed!
Hmmm... I have never experienced that behaviour. If you install a metapackage, then it will be marked as "manually installed", which prevents autoremove from uninstalling it. And, since the metapackage depends on all of the packages that it pulls in, these packages cannot get removed either (unless the metapackage is removed).

What I did have happening to me once, was that the libreoffice metapackage had somehow gotten removed, with the result that all of the packages on which it depended, no longer had any packages depending on them. Since these packages were not installed manually, they were considered automatically installed packages that were no longer needed by any packages, which made them candidates for autoremoval. Fortunately, the list of packages that the package manager wanted to autoremove, was so long, that I immediately realised that something was wrong. Once I understood that my system was missing the libreoffice metapackage, I simply reinstalled that, after which autoremove left my libreoffice install alone.

To me, the moral of the story appears to be: If you installed a software product by its metapackage, then you should avoid uninstalling the metapackage if you want to ensure that autoremove will not attempt to remove the software. Alternatively, if you do feel that it is necessary for you to uninstall the metapackage (which actually happened to me a few times with the Ubuntu desktop), then you should mark the packages on which it depends as "manually installed".
 
Old 10-16-2015, 08:12 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by luvr View Post
Hmmm... I have never experienced that behaviour. If you install a metapackage, then it will be marked as "manually installed", which prevents autoremove from uninstalling it. And, since the metapackage depends on all of the packages that it pulls in, these packages cannot get removed either (unless the metapackage is removed).

What I did have happening to me once, was that the libreoffice metapackage had somehow gotten removed, with the result that all of the packages on which it depended, no longer had any packages depending on them. Since these packages were not installed manually, they were considered automatically installed packages that were no longer needed by any packages, which made them candidates for autoremoval. Fortunately, the list of packages that the package manager wanted to autoremove, was so long, that I immediately realised that something was wrong. Once I understood that my system was missing the libreoffice metapackage, I simply reinstalled that, after which autoremove left my libreoffice install alone.

To me, the moral of the story appears to be: If you installed a software product by its metapackage, then you should avoid uninstalling the metapackage if you want to ensure that autoremove will not attempt to remove the software. Alternatively, if you do feel that it is necessary for you to uninstall the metapackage (which actually happened to me a few times with the Ubuntu desktop), then you should mark the packages on which it depends as "manually installed".
This goes a bit further and it is where the real problems with the combination of meta-packages and autoremove are. For example, if you have for example the gnome meta-package installed and then remove the package for the Evolution mail-client (which was installed by the meta-package) then the meta-package's dependencies are no longer fullfilled and autoremove will remove that,too, of course including all other packages it has installed as a dependency, removing the whole Gnome desktop and recursively all packages that where installed as their dependencies and so on.
This is why I try to avoid meta-packages as much as possible when using distros with a package manager that doesn't support package groups and has to rely on meta-packages for this functionality. You won't run into these problems when using a package-manager that supports package groups, like yum/dnf or pacman.
 
Old 10-16-2015, 10:29 AM   #8
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
To nuke a meta package from orbit:
Code:
# aptitude unmarkauto '?reverse-depends(some-metapackage) | ?reverse-recommends(some-metapackage)'
# aptitude purge some-metapackage
(where "some-metapackage" is the name of the meta package you want to remove).

This marks the hard dependencies and recommended dependencies of said package as manually installed (so autoremove leaves them alone) - allowing you to purge it safely.
 
2 members found this post helpful.
  


Reply



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
remove unused / orphan packages keratos Linux - Software 5 09-04-2008 01:01 PM
Aptitude has The following packages are unused and will be REMOVED sixerjman Linux - Software 1 01-05-2006 05:36 PM
Removing unused packages objorkum Debian 2 04-05-2005 08:32 PM
How are unused packages safely removed? oily_rags SUSE / openSUSE 2 03-26-2005 06:18 PM
removing unused packages hypermegachi Slackware 3 07-05-2004 03:06 PM

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

All times are GMT -5. The time now is 07:03 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
Open Source Consulting | Domain Registration