-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Blacklist Option #2325
Comments
You can prevent a package from updating using |
Yes - but that is only AFTER it has been installed. I want to PREVENT packages from being installed. |
You mean, you don't want to explicitly list packages you want to install, but instead do |
I was thinking of something similar to A default Then you can add - for example |
I still don't get it. If you don't want some package to be installed - just don't install it. A blacklist only makes sense if you want to install by a glob or regex pattern, but filter some packages out of it. |
Is it possible to do the same with PKGBASE as described in the message I linked to in the first message? |
pkgbase is no different from any other set of packages. Having read the Mastodon post, I still fail to understand the problem. |
Good idea, will share that with the author of the post. |
Author of the mastodon post here... The only reason I wish for something (not necessarily a blacklist option) to exclude packages during fresh install is simple: I want to use pkgbase for FreeBSD jails. All the docs out there just install
This is the obvious way, but it has a problem - I don't know which packages are necessary for a well function jail. Sure, I know to exclude the kernel, source, whatever, but I don't really want to figure out what is needed and what isn't every time there is a new release. (That's with a user/sysadmin hat on; with a wanna be fbsd dev hat on, I could figure it out but it still feels a bit like waste of time.) IMO, the ideal solution would be for pkgbase to include some kind of metapackage for "jail stuff" subset of the system. Then it would be as easy as Just my 2 cents. |
the doc is working around a missing feature which is pkg group, half backed so far... a pkg group is kind of a metapackage, but more clever, at the moment we will have finished the pkg groups, one would be able to say pkg install FreeBSD-userland or something like that to just install the userland without the kernel. |
Right now my workaround for this is to run pkg rquery which does support negated blobs to expand the query and repo to a list of %n-%v pairs for installation. To avoid spurious changes I run pkg update first and invoke the remaining commands without updating the repository metadata. It would be nice to have flag that allows prefixing globs/regexes with a plus or minus to get rid of this. |
I have tried to find it - but failed ...
Does
pkg(8)
has an option to blacklist a list of packages?This alone is a perfect example for need of such option:
For example 'mask' any
kernel*
packages to not install/update them - to ignore them - as a blacklist option inpkg(8)
?I know that having some additional kernel and kernel modules does not 'hurt' on Jails - but there would probable are other use cases for such option.
Regards,
vermaden
The text was updated successfully, but these errors were encountered: