rmconfig from all ports tree
Greg Larkin
glarkin at FreeBSD.org
Thu Jul 22 00:13:05 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
claudiu vasadi wrote:
> one solution I just created would be:
>
> for i in `find /usr/ports/ -type directory -print`; do `cd $i && make
> rmconfig`;done
>
> but I am wondering if there is a "official way". man portsclean did not give
> me any options to do it.
>
>
> Another thing would be to make rmconfig in all dir's that are required to be
> installed by a particular meta-port, for instance kde/gnome/xfce.
Hi Claudiu,
You can use one of these two targets:
rmconfig - Remove the options config for this port.
rmconfig-recursive - Remove the options config for this port and
all dependencies.
Or, if you want to use a big hammer and remove all configs for all
ports, use:
find /var/db/ports -type f -name options -print | xargs rm
Hope that helps,
Greg
- --
Greg Larkin
http://www.FreeBSD.org/ - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFMR40E0sRouByUApARAiAxAJ4tTVUwd1HdU1ZqZsTZdpmmHfK5swCdG4CL
OG68m0jqHWogajdG0rn/ZSU=
=ns+l
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list