Page 1 of 1

pretty basic...uninstall something installed via portage?

Posted: Tue Feb 14, 2006 1:53 am
by teitoku
Is there a simple way to remove things I've installed via portage? I installed sox on my Gentoox Pro machine, which also had to install 7 other packages, including ALSA. I found a better way to solve my sound editing problem though, and want to remove all that stuff that was installed. How can I do this easily?

Posted: Tue Feb 14, 2006 6:00 am
by orochi
the "-C" flag for emerge will do this for you, but be warned it wont check for dependancies


emerge -C <package>


if sound stops working because if alsa, you can try

magic fix alsa && magic

Posted: Tue Feb 14, 2006 7:10 am
by teitoku
1, I want ALSA removed, sound support, all that GONE.
2, magic kills my system. It doesn't have a config for a fully native install, and trashes my linuxboot.cfg.

Posted: Tue Feb 14, 2006 11:06 pm
by sevenlayercookie
teitoku wrote:1, I want ALSA removed, sound support, all that GONE.
Try "emerge -c sox"
then "emerge --pretend depclean" make sure it lists correct dependencies.
If it's OK, then run "emerge depclean"

Depclean removes unnecessary dependencies.

teitoku wrote:2, magic kills my system. It doesn't have a config for a fully native install, and trashes my linuxboot.cfg.
You probably won't need to magic it. If you do... Heh, sorry
:P

Posted: Wed Feb 15, 2006 7:14 am
by teitoku
apparently, it didn't even manage to install sox through all of that. So I've got ALSA that I know of, and some other mystery packages that I can't identify on my own. What do you recommend I do to hunt down and remove them?

Posted: Wed Feb 15, 2006 3:14 pm
by sevenlayercookie
Try "emerge depclean"
It scans the system for unused dependencies, then removes them.

Posted: Wed Feb 15, 2006 8:15 pm
by teitoku
That full page warning it gives kind of freaks me out though.
xbox root # emerge --pretend depclean

*** WARNING *** --depclean is known to be broken. It is highly recommended
*** WARNING *** that `emerge --update --newuse --deep world` be ran before
*** WARNING *** commencing. However, using --depclean may still break link
*** WARNING *** level consistency within your system. `revdep-rebuild`
*** WARNING *** from app-portage/gentoolkit can help to detect breakage.
*** WARNING ***
*** WARNING *** Also study the list of packages to be cleaned for any
*** WARNING *** obvious mistakes. Packages can be manually added to the
*** WARNING *** world list by running `emerge --noreplace <atom>`.
*** WARNING ***
*** WARNING *** Make sure you have a backup.
I don't know where to look up what each of these is used for, so if somebody could take a look and let me know if it'd be safe to go ahead with the depclean I'd really appreciate it. Some look a bit risky to me.
  • sys-apps/netkit-base
    sys-devel/bin86
    sys-apps/miscfiles
    sys-apps/fileutils
    app-shells/sash
    media-sound/lame
    app-arch/ncompress
    sys-apps/sh-utils
    sys-devel/bc
    app-arch/sharutils
    sys-boot/grub
    sys-apps/slocate
    media-libs/libmad
    net-misc/dhcpcd
    net-ftp/ftp
    dev-libs/glib
    sys-apps/textutils
    media-libs/libvorbis
    sys-apps/setserial
    sys-libs/slang
    media-libs/libogg
    sys-apps/ed
    app-arch/cabextract
    sys-apps/fbset

Posted: Thu Feb 16, 2006 7:38 am
by orochi
search on http://packages.gentoo.org/ to find some info in each of those ebuilds you listed