XFCE4 desktop
Frank McCormick
fmccormick at videotron.ca
Thu Jun 22 17:56:37 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 22 Jun 2006 15:46:00 +0200
Florian Diesch <diesch at spamfence.net> wrote:
>
> Another way to go is to find all packages that xubuntu-desktop depends
> on but ubuntu-base and ubuntu-desktop does not.
>
> The following shell script should write this package names to
> "/tmp/result". After checking if it it what you want uninstall the
> packages with
> xargs -a /tmp/result apt-get remove
>
> Maybe it needs apt-rdepends installed first, I'm not sure if it is by default.
>
> ,----[ uninstall-xubuntu.sh ]
> | #!/bin/sh
> |
> |
> | to_remove="xubuntu-desktop"
> | shift
> | except="ubuntu-base ubuntu-desktop"
> |
> | f_remove="/tmp/remove"
> | f_except="/tmp/except"
> | f_result=/tmp/result
> |
> | rm "$f_remove" "$f_except" "$f_result"
> |
> | apt-rdepends "$to_remove" | grep '^[^ ]' > "$f_remove"
> |
> | for i in $except; do
> | apt-rdepends "$i" | grep '^[^ ]' >> "$f_except"
> | done
> |
> | grep -F -v -f "$f_except" "$f_remove" >> "$f_result"
Fabulous script Florian. I installed apt-rdepends, ran it, then ran your xargs command line and it did the job! No searching, and apt-get listed everything that was not installed and removed what was. A million thanks!
- --
Cheers
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEmtnV8Rvr3Tn207ARAuO1AJ9V+RMdNM+nSBUTTGhPuVVVXldr8wCfe5/m
tn2lKq5K6NS4L6X/emEdw+Y=
=YzmW
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list