Removing Packages

From RockWiki

Jump to: navigation, search

Before you start or after you are done Installing Packages, you probably want to remove other packages. Maybe because you replaced fluxbox with openbox or just because you don't need that particular package anymore. The ROCK tool mine helps you with it.

First, though, you need to know which package contains the files you want to have removed. This can sometimes be guessed (the /usr/bin/mplayer file is part of - surprise! - the mplayer package) but even then you'd have a problem with just removing the Template:Mplayer package. Why? Because using Package Forking the mplayer package has two additional packages: mplayer:doc and mplayer:dev which might be installed on your system. This, too, can be solved with mine. Here's how.

First, determine which package your files belong to:

root@ceres:/# mine -l | grep usr/X11R6/bin/X
xorg: usr/X11R6/bin/X
xorg: usr/X11R6/bin/Xdmx
xorg: usr/X11R6/bin/Xmark
xorg: usr/X11R6/bin/Xnest
xorg: usr/X11R6/bin/Xorg
xorg: usr/X11R6/bin/Xprt
xorg: usr/X11R6/bin/Xvfb
vnc: usr/X11R6/bin/Xvnc
vnc: usr/X11R6/bin/Xwrapper
root@ceres:/#

This tells you that the X server you have installed is part of xorg and not - for example - xfree86. To remove this package you would run this command:

root@ceres:/# mine -r xorg

But that would leave you with the xorg:doc and xorg:dev packages. You can of course remove them manually, but not every package has them and other packages have even more subpackages. For that you can instruct mine to remove a package and all subpackages:

root@ceres:/# mine -r -s xorg

That way you'll get them all deinstalled, no matter how many subpackages there are.

Personal tools