How to delete unused dependencies? [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

How to delete unused dependencies? [Solved]

Postby enether » Wed Aug 18, 2010 21:51

Hello, I've got a question: How can I cleanup my system from unused dependencies? For example when I install something it pulls 2 additional dependencies, but when I uninstall it, it only uninstalls exactly that program, but no deps. I studied equo manual, but I hadn't found solution. Is there any tool like emerge --depclean?

Sorry for my language.
Last edited by enether on Wed Aug 18, 2010 23:56, edited 1 time in total.
enether
Baby Hen
 
Posts: 11
Joined: Sun Jun 13, 2010 11:43

Re: How to delete unused dependencies?

Postby sabayonino » Wed Aug 18, 2010 22:21

you can use --deep option :

equo remove package_name --deep

IMPORTANT : --deep option can break your system if some dependecies are required from system . please use --pretend option also to check what can remove

equo remove package_nanme --deep --pretend

For example ; to remove openoffice application and its dependecies :

Code: Select all
equo remove openoffice --deep --pretend
>> Esecuzione con --pretend ...
>>  @@ Questi sono i pacchetti scelti:
>>    # (1/1) [sabayonlinux.org] app-office/openoffice-3.2.1-r2 [308.4MB]
>>  @@ Pacchetti coinvolti: 1
>>  @@ Questi sono i pacchetti che vorrebbero essere rimossi:
>>  ## [sabayonlinux.org] x11-themes/sabayon-artwork-ooo-5.3 [1.0MB]
>>  ## [sabayonlinux.org] app-office/openoffice-3.2.1-r2 [308.4MB]
>>  ## [sabayonlinux.org] media-libs/vigra-1.6.0 [5.7MB]
>>  @@ Pacchetti da rimuovere: 3
>>  @@ Spazio su disco liberato: 315.1MB
>>  @@ Spazio totale sprecato: 117.6MB
User avatar
sabayonino
Sagely Hen
 
Posts: 2968
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: How to delete unused dependencies?

Postby enether » Wed Aug 18, 2010 22:27

Yes, I know about --deep. But i wasn't using it, so there should be many of unused dependencies in my system. Is there any tool to find them and delete them?
enether
Baby Hen
 
Posts: 11
Joined: Sun Jun 13, 2010 11:43

Re: How to delete unused dependencies?

Postby joost » Wed Aug 18, 2010 23:39

Code: Select all
equo unusedpackages --sortbysize


Be very careful though.
joost
Sagely Hen
 
Posts: 2630
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: How to delete unused dependencies?

Postby enether » Wed Aug 18, 2010 23:55

Yeah, I found that too. But it shows also rare used packages, like "Battle For Wesnoth" etc. But it gonna have to be enough. Thanks guys. :)
enether
Baby Hen
 
Posts: 11
Joined: Sun Jun 13, 2010 11:43

Re: [SOLVED] How to delete unused dependencies?

Postby joost » Wed Aug 18, 2010 23:59

It does not show "rare used packages" it shows packages that have no direct installed depend.
So you can technically remove them. But be aware that some things in there, even though nothing depends on it, are there for functionality.
joost
Sagely Hen
 
Posts: 2630
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: How to delete unused dependencies?

Postby svantoviit » Thu Aug 19, 2010 0:09

equo unusedpackages is not very helpful
it suggests 455 packages (out of 1587) in my case
sulfur, magneto, sabayon-artwork, layman, python, gnome-main-menu, gimp, grub, firefox, graphical drivers, kernel modules and a lot of other applications and stuff...
looks like to be VERY careful is not enough :?
svantoviit
Old Dear Hen
 
Posts: 703
Joined: Sun Feb 28, 2010 17:55

Re: [SOLVED] How to delete unused dependencies?

Postby joost » Thu Aug 19, 2010 0:11

With power comes responsibility.
You should really know what you are doing.

equo unusedpackages --sortbysize | grep layman

^^ results nothing here though. Actually none off the stuff mention does.
joost
Sagely Hen
 
Posts: 2630
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: [SOLVED] How to delete unused dependencies?

Postby svantoviit » Thu Aug 19, 2010 0:21

here's the result of equo unusedpackages -q
Code: Select all
app-accessibility/espeak-1.42.04
app-admin/chrpath-0.13
app-admin/eselect-emacs-1.13
app-admin/eselect-gnat-1.5
app-admin/eselect-oodict-20100228
app-admin/gnome-system-tools-2.30.2
app-admin/hddtemp-0.3_beta15-r4
app-admin/logrotate-3.7.8
app-admin/pwgen-2.06-r1
app-admin/sulfur-0.99.49.21
app-admin/syslog-ng-3.1.2
app-admin/sysstat-9.0.6.1
app-admin/webmin-1.510
app-antivirus/clamtk-4.26
app-arch/file-roller-2.30.2
app-arch/p7zip-9.13
app-arch/rar-3.9.2
app-arch/sharutils-4.9
app-backup/luckybackup-0.4.0
app-cdr/bchunk-1.2.0
app-cdr/k3b-2.0.0
app-crypt/seahorse-2.30.1
app-crypt/steghide-0.5.1
app-dicts/aspell-de-0.60_pre20030222
app-dicts/aspell-sk-2.01.2
app-dicts/aspell-sv-0.51.0
app-dicts/myspell-en-20081002
app-editors/bluefish-2.0.1
app-editors/gedit-plugins-2.30.0
app-editors/gvim-7.2.442
app-emulation/emul-linux-x86-compat-20100611
app-emulation/virtualbox-bin-3.2.8
app-emulation/virtualbox-modules-3.2.8#2.6.33-sabayon
app-emulation/virtualbox-modules-3.2.8#2.6.35-sabayon
app-emulation/wine-1.3.0
app-forensics/chkrootkit-0.49
app-laptop/laptop-mode-tools-1.55-r1
app-laptop/omnibook-20090628-r1#2.6.35-sabayon
app-laptop/pommed-1.31
app-laptop/radeontool-1.6.1
app-misc/mc-4.7.3-r2
app-misc/sabayon-mce-1.0-r10
app-misc/sabayon-music-5.3
app-misc/sabayon-skel-5.4-r6
app-misc/sabayon-version-5-r1
app-misc/screen-4.0.3
app-misc/tomboy-1.2.1
app-mobilephone/obexftp-0.23-r1
app-office/glabels-2.2.8
app-office/mdbtools-0.6_pre2
app-portage/eix-0.20.6
app-portage/gentoolkit-0.3.0_rc10-r1
app-portage/gentoolkit-dev-0.2.7
app-portage/layman-1.4.1
app-shells/tcsh-6.17-r1
app-text/docbook-dsssl-stylesheets-1.79
app-text/docbook-sgml-dtd-3.0-r3
app-text/docbook-sgml-dtd-3.1-r3
app-text/docbook-sgml-dtd-4.0-r3
app-text/docbook-sgml-dtd-4.1-r3
app-text/docbook-sgml-dtd-4.4
app-text/docbook-xml-simple-dtd-1.0-r1
app-text/docbook-xml-simple-dtd-4.1.2.4-r2
app-text/docbook2X-0.8.8-r2
app-text/enscript-1.6.5.2
app-text/focuswriter-1.2.1
app-text/gnochm-0.9.11-r1
app-text/gnome-spell-1.0.8-r3
app-text/gtranslator-1.9.11
app-text/gv-3.7.1
app-text/pastebunz-1.1-r2
app-text/pdftk-1.41-r2
app-text/poppler-0.12.4-r4
app-text/psutils-1.17-r1
app-text/wv-1.2.7
app-text/xmlto-0.0.23
app-text/xpdf-3.02-r4
app-text/yagf-0.8.1
dev-dotnet/gecko-sharp-0.13
dev-dotnet/gtkhtml-sharp-2.24.0-r10
dev-dotnet/podsleuth-0.6.4-r1
dev-java/javatoolkit-0.3.0-r4
dev-java/sun-jre-bin-1.6.0.21
dev-lang/python-2.4.6
dev-libs/check-0.9.6
dev-libs/crypto++-5.6.0-r1
dev-libs/dotconf-1.1.0-r1
dev-libs/geoip-1.4.6
dev-libs/gir-repository-0.6.5
dev-libs/glib-1.2.10-r5
dev-libs/gmime-2.2.23
dev-libs/libgee-0.5.0
dev-libs/libsigsegv-2.8
dev-libs/tre-0.8.0
dev-libs/xmlrpc-c-1.18.02
dev-libs/xplc-0.3.13-r1
dev-perl/Convert-ASN1-0.22
dev-perl/Crypt-Blowfish-2.12
dev-perl/Crypt-OpenSSL-Bignum-0.04
dev-perl/DateManip-5.56
dev-perl/DateTime-Locale-0.45
dev-perl/DateTime-TimeZone-1.20
dev-perl/Digest-MD4-1.5
dev-perl/Geography-Countries-2009041301
dev-perl/IO-String-1.08
dev-perl/MIME-Lite-3.027
dev-perl/MIME-tools-5.428
dev-perl/Net-Jabber-2.0
dev-perl/Net-LibIDN-0.12
dev-perl/Parse-Yapp-1.05-r1
dev-perl/SGMLSpm-1.03-r6
dev-perl/SVG-2.50
dev-perl/Text-WrapI18N-0.06
dev-perl/XML-DOM-1.44
dev-perl/crypt-dh-0.06
dev-perl/perl-tk-804.029
dev-perl/yaml-0.71
dev-python/cddb-py-1.4
dev-python/docutils-0.7
dev-python/egg-python-2.25.3
dev-python/elementtree-1.2.6-r2
dev-python/fpconst-0.7.3
dev-python/gdata-2.0.10
dev-python/gdl-python-2.25.3
dev-python/gnome-python-desktop-2.30.2
dev-python/gtkmozembed-python-2.25.3
dev-python/gtkspell-python-2.25.3
dev-python/id3-py-1.2
dev-python/libgksu-python-2.25.3
dev-python/m2crypto-0.20.2
dev-python/numeric-24.2-r6
dev-python/pyid3lib-0.5.1-r1
dev-python/pyparted-3.4
dev-python/python-ldap-2.3.11
dev-python/pyvorbis-1.4-r3
dev-python/urwid-0.9.9.1
dev-tcltk/itcl-3.3.1_pre20090417
dev-util/lafilefixer-0.5
dev-util/translate-toolkit-1.5.1
games-arcade/supertux-0.1.3
games-puzzle/world-of-goo-demo-1.41
gnome-base/gail-1000
gnome-base/gnome-applets-2.30.0-r1
gnome-base/gnome-light-2.30.2
gnome-base/gnome-shell-2.29.1
gnome-extra/deskbar-applet-2.30.1
gnome-extra/evolution-exchange-2.30.2
gnome-extra/evolution-webcal-2.28.1
gnome-extra/fast-user-switch-applet-2.24.0
gnome-extra/gcalctool-5.30.2
gnome-extra/gconf-editor-2.30.0
gnome-extra/gnome-do-0.8.3.1
gnome-extra/gnome-games-2.30.2
gnome-extra/gnome-main-menu-0.9.14
gnome-extra/gnome-power-manager-2.30.1
gnome-extra/gnome-screensaver-2.30.0
gnome-extra/gnome-system-monitor-2.28.1
gnome-extra/libgail-gnome-1.20.3
gnome-extra/libgda-1.2.4
gnome-extra/nautilus-open-terminal-0.18
gnome-extra/nautilus-sendto-2.28.4-r1
gnome-extra/nm-applet-0.8
gnome-extra/policykit-gnome-0.9.2-r1
gnome-extra/sensors-applet-2.2.7
kde-base/akregator-4.4.5
kde-base/kdebase-runtime-meta-4.4.5
kde-base/konqueror-4.4.5
kde-base/ktouch-4.4.5
mail-client/mail-notification-5.4-r4
mail-filter/bogofilter-1.2.1
media-fonts/culmus-0.104-r1
media-fonts/freefont-ttf-20090104
media-fonts/sabayon-fonts-1.0
media-fonts/ttf-bitstream-vera-1.10-r3
media-gfx/eog-2.30.2
media-gfx/exif-0.6.19
media-gfx/feh-1.8
media-gfx/gimp-2.6.10
media-gfx/inkscape-0.47
media-gfx/splashutils-1.5.4.3-r2
media-gfx/ufraw-0.17
media-libs/capseo-0.3.0_pre200712251-r2
media-libs/libcaca-0.99_beta17
media-libs/libdc1394-1.2.2
media-libs/libdvbpsi-0.1.7
media-libs/libdvdplay-1.0.1
media-libs/libgpod-0.7.93
media-libs/libiec61883-1.1.0
media-libs/libj2k-0.0.9
media-libs/liblo-0.26
media-libs/liblqr-0.4.1
media-libs/libmatroska-1.0.0
media-libs/libmpeg3-1.7
media-libs/libpng-1.2.44
media-libs/libquicktime-1.1.5
media-libs/libsvg-0.1.4
media-libs/ming-0.4.3
media-libs/musicbrainz-3.0.2
media-libs/openjpeg-1.3-r2
media-libs/portaudio-19_pre20090514
media-libs/win32codecs-20071007-r4
media-plugins/alsa-plugins-1.0.23-r3
media-plugins/gst-plugins-annodex-0.10.23
media-plugins/gst-plugins-cdio-0.10.13
media-plugins/gst-plugins-cdparanoia-0.10.29
media-plugins/gst-plugins-dv-0.10.23
media-plugins/gst-plugins-faac-0.10.19
media-plugins/gst-plugins-faad-0.10.19
media-plugins/gst-plugins-gnomevfs-0.10.29
media-plugins/gst-plugins-jpeg-0.10.23
media-plugins/gst-plugins-libmms-0.10.19
media-plugins/gst-plugins-libpng-0.10.23
media-plugins/gst-plugins-libvisual-0.10.29
media-plugins/gst-plugins-musepack-0.10.19
media-plugins/gst-plugins-neon-0.10.19
media-plugins/gst-plugins-oss-0.10.23
media-plugins/gst-plugins-shout2-0.10.23
media-plugins/gst-plugins-sidplay-0.10.13
media-plugins/gst-plugins-speex-0.10.23
media-plugins/gst-plugins-wavpack-0.10.23
media-plugins/gst-plugins-ximagesrc-0.10.22
media-plugins/swh-plugins-0.4.15-r1
media-sound/alsa-firmware-1.0.23
media-sound/audacity-1.3.12
media-sound/esound-0.2.41
media-sound/fluidsynth-1.1.1
media-sound/padevchooser-0.9.3-r1
media-sound/paman-0.9.4-r1
media-sound/pavucontrol-0.9.10
media-sound/pavumeter-0.9.3-r1
media-sound/streamripper-1.64.6
media-tv/afatech9005-firmware-2
media-tv/ivtv-firmware-20080701
media-video/avidemux-2.5.3-r2
media-video/cheese-2.30.1
media-video/dvdrip-0.98.11
media-video/gaupol-0.15.1
media-video/smplayer-0.6.9
net-analyzer/gnome-netstatus-2.28.1
net-analyzer/netspeed_applet-0.15.2
net-analyzer/nmap-5.21
net-analyzer/traceroute-2.0.15
net-dialup/globespan-adsl-0.11-r1
net-dialup/gnome-ppp-0.3.23-r1
net-dialup/mingetty-1.08
net-dialup/pppconfig-2.3.17-r1
net-dialup/rp-l2tp-0.4-r2
net-dialup/rp-pppoe-3.10-r1
net-dialup/slmodem-2.9.11_pre20090222-r1#2.6.33-sabayon
net-dns/bind-tools-9.7.1
net-dns/host-20070128
net-dns/openresolv-3.3.4
net-firewall/ipset-2.3.1.20080612
net-firewall/shorewall6-4.4.2
net-fs/nfs-utils-1.2.2-r1
net-ftp/ftp-0.17-r7
net-ftp/ftpbase-0.01-r2
net-im/pidgin-2.7.3
net-im/skype-2.1.0.81
net-irc/irssi-0.8.15
net-irc/xchat-2.8.8
net-libs/adns-1.4-r1
net-libs/courier-authlib-0.62.4
net-libs/libnet-1.1.4
net-libs/libntlm-1.2
net-libs/libupnp-1.6.6-r1
net-libs/libwww-5.4.0-r7
net-mail/uw-mailutils-2007e
net-misc/bridge-utils-1.4
net-misc/dhcdbd-3.0
net-misc/dhcpcd-5.2.6
net-misc/dropbear-0.52
net-misc/fatrat-1.1.2
net-misc/grdesktop-0.23
net-misc/keychain-2.7.1
net-misc/knock-0.5
net-misc/netkit-fingerd-0.17-r3
net-misc/netkit-talk-0.17-r4
net-misc/networkmanager-openvpn-0.8
net-misc/networkmanager-pptp-0.8
net-misc/networkmanager-vpnc-0.8
net-misc/tor-0.2.1.26
net-misc/whois-5.0.6
net-misc/youtube-dl-2010.07.24
net-p2p/deluge-1.3.0_rc1
net-print/foomatic-db-ppds-4.0.20100218
net-print/foomatic-filters-ppds-20080507
net-print/gnome-cups-manager-0.33-r1
net-print/gutenprint-5.2.5-r1
net-proxy/polipo-1.0.4.1
net-proxy/privoxy-3.0.15_beta
net-wireless/acx-firmware-20060207
net-wireless/aircrack-ng-1.1
net-wireless/atmel-firmware-1.3
net-wireless/b43-firmware-4.150.10.5
net-wireless/bcm43xx-firmware-4319-r1
net-wireless/bcm43xx-fwcutter-006
net-wireless/blueman-1.21-r1
net-wireless/bluez-firmware-1.2
net-wireless/bluez-hcidump-1.42
net-wireless/broadcom-sta-5.60.48.36-r1#2.6.35-sabayon
net-wireless/ipw2200-firmware-3.1
net-wireless/ipw3945-ucode-1.14.2
net-wireless/ipw3945d-1.7.22-r6
net-wireless/iwl3945-ucode-15.28.1.6
net-wireless/iwl3945-ucode-15.32.2.9
net-wireless/iwl4965-ucode-228.57.1.21
net-wireless/iwl4965-ucode-228.61.2.24
net-wireless/iwl5000-ucode-5.4.0.11
net-wireless/iwl5000-ucode-8.24.2.12
net-wireless/iwl5150-ucode-8.24.2.2
net-wireless/kismet-2010.01.1
net-wireless/libbtctl-0.11.1
net-wireless/libertas-firmware-5.220.10
net-wireless/linux-wlan-ng-firmware-0.2.2
net-wireless/linux-wlan-ng-utils-0.2.2
net-wireless/ndiswrapper-1.56#2.6.35-sabayon
net-wireless/prism54-firmware-1.0.4.3
net-wireless/prism54-usb-firmware-1.0.4.3
net-wireless/rt61-firmware-1.2
net-wireless/rt73-firmware-1.8-r1
net-wireless/zd1201-firmware-0.14
net-wireless/zd1211-firmware-1.4
perl-core/DB_File-1.820
perl-core/Digest-MD5-2.39
perl-core/File-Temp-0.22
perl-core/MIME-Base64-3.09
perl-core/Package-Constants-0.02
perl-core/PodParser-1.38
perl-core/Sys-Syslog-0.27
perl-core/Time-HiRes-1.97.21
perl-core/Time-Local-1.19.01
perl-core/digest-base-1.16
perl-core/libnet-1.22
sci-geosciences/googleearth-5.1.3535.3218-r1
sys-apps/915resolution-0.5.3-r3
sys-apps/devicekit-003
sys-apps/ed-1.4
sys-apps/gpu-detector-2.4.6-r1
sys-apps/hwdata-gentoo-0.4
sys-apps/hwinfo-16.0
sys-apps/ifplugd-0.28-r9
sys-apps/keyboard-configuration-helpers-2.5-r2
sys-apps/language-configuration-helpers-1.2.3
sys-apps/less-436
sys-apps/lsb-release-1.4
sys-apps/lshw-02.14b
sys-apps/pcsc-lite-1.6.1
sys-apps/pmount-0.9.20
sys-apps/setserial-2.17-r4
sys-apps/smartmontools-5.39.1
sys-apps/tuxonice-userui-1.0
sys-apps/usermode-utilities-20070815
sys-apps/v86d-0.1.9
sys-apps/xinetd-2.3.14
sys-auth/pam_dotfile-0.7-r1
sys-auth/pam_krb5-3.13
sys-auth/pam_ldap-184
sys-auth/pam_passwdqc-1.0.5
sys-auth/pam_pwdfile-0.99
sys-auth/pam_require-0.7
sys-auth/pam_ssh-1.97-r1
sys-auth/pam_userdb-1.1.0
sys-block/gparted-0.6.2
sys-boot/grub-0.97-r22
sys-boot/grub-handler-0.2-r6
sys-fs/ntfs3g-2010.5.16
sys-fs/squashfs-tools-4.0_p20090325
sys-fs/udftools-1.0.0b-r9
sys-libs/db-3.2.9_p2
sys-libs/db-4.5.20_p2-r1
sys-libs/libavc1394-0.5.3
sys-libs/pwdb-0.62
sys-power/acpitool-0.5.1
sys-process/lsof-4.84
virtual/ghostscript-0
virtual/mpg123-0
virtual/perl-Test-Simple-0.94
virtual/perl-Time-Local-1.19.01
virtual/talloc-1.0.0
virtual/tdb-1.0.0
www-client/firefox-3.6.8-r10
www-client/lynx-2.8.8_pre2
www-client/opera-10.61
www-plugins/adobe-flash-10.1.53.64-r1
www-plugins/nspluginwrapper-1.3.0
x11-apps/fonttosfnt-1.0.4
x11-apps/fusion-icon-0.1-r1
x11-apps/xcalc-1.0.3
x11-apps/xdm-1.1.9
x11-apps/xeyes-1.1.0
x11-apps/xfontsel-1.0.2-r1
x11-apps/xkbprint-1.0.2
x11-apps/xload-1.0.2-r1
x11-apps/xlsfonts-1.0.3
x11-apps/xsetpointer-1.0.1
x11-apps/xsm-1.0.1-r1
x11-apps/xtrap-1.0.2
x11-base/xorg-x11-7.4-r1
x11-drivers/ati-drivers-10.7#2.6.35-sabayon
x11-drivers/xf86-input-acecad-1.4.0
x11-drivers/xf86-input-aiptek-1.3.0
x11-drivers/xf86-input-joystick-1.5.0
x11-drivers/xf86-input-synaptics-1.2.1
x11-drivers/xf86-input-virtualbox-3.2.8
x11-drivers/xf86-video-apm-1.2.2
x11-drivers/xf86-video-ark-0.7.2
x11-drivers/xf86-video-ati-6.13.0
x11-drivers/xf86-video-chips-1.2.2
x11-drivers/xf86-video-cirrus-1.3.2
x11-drivers/xf86-video-dummy-0.3.3
x11-drivers/xf86-video-glint-1.2.4
x11-drivers/xf86-video-i128-1.3.3
x11-drivers/xf86-video-i740-1.3.2
x11-drivers/xf86-video-intel-2.12.0
x11-drivers/xf86-video-mga-1.4.12
x11-drivers/xf86-video-neomagic-1.2.4
x11-drivers/xf86-video-nv-2.1.17
x11-drivers/xf86-video-openchrome-0.2.904_p855
x11-drivers/xf86-video-rendition-4.2.3
x11-drivers/xf86-video-s3-0.6.3
x11-drivers/xf86-video-s3virge-1.10.4
x11-drivers/xf86-video-savage-2.3.1
x11-drivers/xf86-video-siliconmotion-1.7.4
x11-drivers/xf86-video-sis-0.10.2
x11-drivers/xf86-video-sisusb-0.9.3
x11-drivers/xf86-video-tdfx-1.4.3
x11-drivers/xf86-video-tga-1.2.1
x11-drivers/xf86-video-trident-1.3.3
x11-drivers/xf86-video-tseng-1.2.3
x11-drivers/xf86-video-v4l-0.2.0
x11-drivers/xf86-video-voodoo-1.2.3
x11-libs/compizconfig-backend-gconf-0.8.4-r1
x11-libs/libFS-1.0.2
x11-libs/qt-assistant-4.6.3
x11-libs/tslib-1.0-r1
x11-misc/alacarte-0.12.4
x11-misc/desktop-acceleration-helpers-3.0.2
x11-misc/magneto-gtk-0.99.49.21
x11-misc/pyroom-0.4.1
x11-misc/read-edid-2.0.0-r1
x11-misc/xclip-0.12
x11-misc/xdialog-2.3.1
x11-misc/xorg-cf-files-1.0.3
x11-misc/xvkbd-3.2
x11-plugins/desklet-ftb-0.3.2
x11-terms/xterm-256
x11-themes/gnome-backgrounds-2.30.0
x11-themes/gtk-theme-switch-2.1.0
x11-themes/sabayon-artwork-extra-5.3
x11-themes/sabayon-artwork-gnome-5.3
x11-themes/sound-theme-freedesktop-0.7
x11-wm/compiz-fusion-0.8.6
x11-wm/fluxbox-1.1.1-r1
x11-wm/twm-1.0.4
svantoviit
Old Dear Hen
 
Posts: 703
Joined: Sun Feb 28, 2010 17:55

Re: How to delete unused dependencies?

Postby vjetnam » Fri Oct 22, 2010 11:26

Hi i made some bash script. Script find and print packages without reverse dependencies. They can be removed safe.
I hope this is what you want. Script is slow but working :-)
Code: Select all
#!/bin/bash

echo "Packages that can be removed safely:"

for ATOM in `equo query installed --quiet`
do
    DEPS_COUNT=`equo query revdeps $ATOM --quiet | wc -l`
    if [ "$DEPS_COUNT" -eq 0 ]
    then
        ATOM1=${ATOM%-r[0-9]*}
        ATOM2=${ATOM1%-*}
        IN_PKG_LIST=0
        for PKG in `cat /etc/sabayon-pkglist`
        do
            PKG1=${PKG%-r[0-9]*}
            PKG2=${PKG1%-*}
            if [ "$ATOM2" = "$PKG2" ]
            then
                IN_PKG_LIST=1
            fi
        done

        if [ "$IN_PKG_LIST" -eq 0 ]
        then
            echo $ATOM
        fi
    fi
done
vjetnam
Baby Hen
 
Posts: 2
Joined: Fri Oct 22, 2010 11:20

Next

Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 4 guests

cron