pretty basic...uninstall something installed via portage?

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
teitoku
Novice
Posts: 29
Joined: Wed Sep 01, 2004 5:29 pm
Contact:

pretty basic...uninstall something installed via portage?

Post 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?
orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post 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
teitoku
Novice
Posts: 29
Joined: Wed Sep 01, 2004 5:29 pm
Contact:

Post 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.
sevenlayercookie
Novice
Posts: 41
Joined: Tue Feb 07, 2006 11:51 pm

Post 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
teitoku
Novice
Posts: 29
Joined: Wed Sep 01, 2004 5:29 pm
Contact:

Post 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?
sevenlayercookie
Novice
Posts: 41
Joined: Tue Feb 07, 2006 11:51 pm

Post by sevenlayercookie »

Try "emerge depclean"
It scans the system for unused dependencies, then removes them.
teitoku
Novice
Posts: 29
Joined: Wed Sep 01, 2004 5:29 pm
Contact:

Post 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
orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post by orochi »

search on http://packages.gentoo.org/ to find some info in each of those ebuilds you listed
Post Reply