On 11/21/17 13:23, Samuel Sieb wrote:
On 11/20/2017 07:09 PM, Geoffrey Leach wrote:
> Ah. For the record, its -x or --exclude. However,that will, "exclude packages
by
> name or glob". I'll give it a try. Thanks.
That's on the dnf command line, not in the config file.
And, because I enjoy being pedantic.....
[egreshko@meimei dnf]$ cat dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
excludepkgs=NetworkManager*
#fastestmirror=true
[egreshko@meimei dnf]$ dnf check-update
Last metadata expiration check: 0:02:48 ago on Tue 21 Nov 2017 01:59:16 PM CST.
perl-Compress-Raw-Zlib.x86_64 2.075-1.fc27 updates
postgresql-libs.x86_64 9.6.6-1.fc27 updates
selinux-policy.noarch 3.13.1-283.16.fc27 updates
selinux-policy-devel.noarch 3.13.1-283.16.fc27 updates
selinux-policy-doc.noarch 3.13.1-283.16.fc27 updates
selinux-policy-sandbox.noarch 3.13.1-283.16.fc27 updates
selinux-policy-targeted.noarch 3.13.1-283.16.fc27 updates
And then.....
[egreshko@meimei dnf]$ cat dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
#excludepkgs=NetworkManager*
#fastestmirror=true
[egreshko@meimei dnf]$ dnf check-update
Last metadata expiration check: 0:03:38 ago on Tue 21 Nov 2017 01:59:16 PM CST.
NetworkManager.x86_64 1:1.8.4-7.fc27 updates
NetworkManager-adsl.x86_64 1:1.8.4-7.fc27 updates
NetworkManager-bluetooth.x86_64 1:1.8.4-7.fc27 updates
NetworkManager-config-connectivity-fedora.noarch 1:1.8.4-7.fc27 updates
NetworkManager-glib.x86_64 1:1.8.4-7.fc27 updates
NetworkManager-libnm.x86_64 1:1.8.4-7.fc27 updates
NetworkManager-wifi.x86_64 1:1.8.4-7.fc27 updates
NetworkManager-wwan.x86_64 1:1.8.4-7.fc27 updates
perl-Compress-Raw-Zlib.x86_64 2.075-1.fc27 updates
postgresql-libs.x86_64 9.6.6-1.fc27 updates
selinux-policy.noarch 3.13.1-283.16.fc27 updates
selinux-policy-devel.noarch 3.13.1-283.16.fc27 updates
selinux-policy-doc.noarch 3.13.1-283.16.fc27 updates
selinux-policy-sandbox.noarch 3.13.1-283.16.fc27 updates
selinux-policy-targeted.noarch 3.13.1-283.16.fc27 updates
So, when I read the man page for dnf.conf and see....
excludepkgs
list
Exclude packages of this repository, specified by a name or a glob
and separated by a comma, from all operations. Can be disabled
using --disableexcludes command line switch.
I guess they weren't incorrect. Seems like a good job of parsing to me and
"correcting" me wasn't necessary. :-) :-)
--
Fedora Users List - The place to go to speculate endlessly