Friday, February 5, 2010

unmerging packages + updating etc files on Gentoo

To uninstall a package, the unmerge command is:
emerge -C


For example if I want to uninstall my nvidia drivers, here is the command and it's output:


localhost # emerge -C x11-drivers/nvidia-drivers

x11-drivers/nvidia-drivers
selected: 185.18.36
protected: none
omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging x11-drivers/nvidia-drivers-185.18.36...
* Removing x11-drivers/nvidia-drivers-185.18.36 from moduledb.
Switching to xorg-x11 OpenGL interface... done

* GNU info directory index is up-to-date.

* IMPORTANT: 1 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

localhost # 


To update all the etc files in Gentoo, use this comand:
etc-update
and:
dispatch-conf

No comments: