A simple solution for deleting a meta-package

Manish Jain bourne.identity at hotmail.com
Wed Apr 12 16:32:26 UTC 2017


Hi,

All of us install meta-packages - they make installation of large package groups so much easier. It is not as clear how to remove (aka uninstall) the meta-package. The -R flag to pkg-delete "pkg delete -R <meta_pkg>" does not quite work the way we would like to have the whole package uninstalled : it only deletes any other packages that need <meta_pkg>.

As an offshoot of my experiments with a minimal KDE setup (successful), I devised a way to delete the meta.

If anyone can benefit from my solution, that's good for him/her and me too.

1) pkg autoremove # (a safety check to remove already orphaned packages)
2) pkg delete <meta_pkg>
3) pkg autoremove

If someone benefits, do let me know  : - )

Regards
Manish Jain



More information about the freebsd-questions mailing list