Now that Mozilla has provided us with its latest and greatest (sic!) Firefox, I need to prevent updates to firefox. Dnf does not appear to provide a "don't update this" option. Any suggestions?
Thanks.
On 11/20/17 22:19, Geoffrey Leach wrote:
Now that Mozilla has provided us with its latest and greatest (sic!) Firefox, I need to prevent updates to firefox. Dnf does not appear to provide a "don't update this" option. Any suggestions?
Sure it does.
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
On Mon, Nov 20, 2017 at 8:31 AM, Ed Greshko ed.greshko@gmail.com wrote:
On 11/20/17 22:19, Geoffrey Leach wrote:
Now that Mozilla has provided us with its latest and greatest (sic!)
Firefox, I need to prevent updates to firefox. Dnf does not appear to provide a "don't update this" option. Any suggestions?
Sure it does.
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
I wish I had the skillset needed to write a plugin for this...
I think he's looking for the same thing I am. I don't want dnf to ignore that a new package exists, I just don't want it installed by default.
For example, I maintain a package for the Ubiquity Unifi controller. Most of the time the upgrade completes without a problem, but even if it does, it can cause the latest firmware to be updated on all the access points. That's something you want to schedule, not happen automatically.
Thanks, Richard
On 20/11/17 16:52, Richard Shaw wrote:
On Mon, Nov 20, 2017 at 8:31 AM, Ed Greshko <ed.greshko@gmail.com mailto:ed.greshko@gmail.com> wrote:
On 11/20/17 22:19, Geoffrey Leach wrote: > Now that Mozilla has provided us with its latest and greatest (sic!) Firefox, I need to prevent updates to firefox. Dnf does not appear to provide a "don't update this" option. Any suggestions? Sure it does. Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.I wish I had the skillset needed to write a plugin for this...
I think he's looking for the same thing I am. I don't want dnf to ignore that a new package exists, I just don't want it installed by default.
For example, I maintain a package for the Ubiquity Unifi controller. Most of the time the upgrade completes without a problem, but even if it does, it can cause the latest firmware to be updated on all the access points. That's something you want to schedule, not happen automatically.
Thanks, Richard
How about
python3-dnf-plugin-versionlock-2.1.5-1.fc27.noarch.rpm ?
On 11/20/2017 09:37:34 AM, John Pilkington wrote:
On 20/11/17 16:52, Richard Shaw wrote:
On Mon, Nov 20, 2017 at 8:31 AM, Ed Greshko <ed.greshko@gmail.com mailto:ed.greshko@gmail.com> wrote:
On 11/20/17 22:19, Geoffrey Leach wrote: > Now that Mozilla has provided us with its latest and greatest(sic!) Firefox, I need to prevent updates to firefox. Dnf does not appear to provide a "don't update this" option. Any suggestions?
Sure it does. Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.I wish I had the skillset needed to write a plugin for this...
I think he's looking for the same thing I am. I don't want dnf to
ignore
that a new package exists, I just don't want it installed by
default.
For example, I maintain a package for the Ubiquity Unifi controller.
Most of the time the upgrade completes without a problem, but even
if it
does, it can cause the latest firmware to be updated on all the
access
points. That's something you want to schedule, not happen
automatically.
Thanks, Richard
How about
python3-dnf-plugin-versionlock-2.1.5-1.fc27.noarch.rpm ?
Looks like what I need. thanks.
On 11/20/2017 06:31:00 AM, Ed Greshko wrote:
On 11/20/17 22:19, Geoffrey Leach wrote:
Now that Mozilla has provided us with its latest and greatest (sic!)
Firefox, I need to prevent updates to firefox. Dnf does not appear to provide a "don't update this" option. Any suggestions?
Sure it does.
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
-- Fedora Users List - The place to go to speculate endlessly
Hmmmm ... let me guess. Feature added in the version included with Fedora 26? I'm running 25, alas. But thanks, anyways.
On 11/20/2017 03:12 PM, Geoffrey Leach wrote:
On 11/20/2017 06:31:00 AM, Ed Greshko wrote:
On 11/20/17 22:19, Geoffrey Leach wrote:
Now that Mozilla has provided us with its latest and greatest (sic!)
Firefox, I need to prevent updates to firefox. Dnf does not appear to provide a "don't update this" option. Any suggestions?
Sure it does.
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
Hmmmm ... let me guess. Feature added in the version included with Fedora 26? I'm running 25, alas. But thanks, anyways.
It's actually just exclude= in the config file and has been around for a while. See "man dnf.conf" for info.
On 11/20/2017 03:32:27 PM, Samuel Sieb wrote:
On 11/20/2017 03:12 PM, Geoffrey Leach wrote:
On 11/20/2017 06:31:00 AM, Ed Greshko wrote:
On 11/20/17 22:19, Geoffrey Leach wrote:
Now that Mozilla has provided us with its latest and greatest
(sic!)
Firefox, I need to prevent updates to firefox. Dnf does not appear
to
provide a "don't update this" option. Any suggestions?
Sure it does.
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
Hmmmm ... let me guess. Feature added in the version included with
Fedora 26? I'm running 25, alas. But thanks, anyways.
It's actually just exclude= in the config file and has been around for a while. See "man dnf.conf" for info.
Got it. Thanks.
On 11/21/17 07:12, Geoffrey Leach wrote:
On 11/20/2017 06:31:00 AM, Ed Greshko wrote:
On 11/20/17 22:19, Geoffrey Leach wrote:
Now that Mozilla has provided us with its latest and greatest (sic!)
Firefox, I need to prevent updates to firefox. Dnf does not appear to provide a "don't update this" option. Any suggestions?
Sure it does.
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
-- Fedora Users List - The place to go to speculate endlessly
Hmmmm ... let me guess. Feature added in the version included with Fedora 26? I'm running 25, alas. But thanks, anyways.
NOPE.... As Samuel said, it has been around since the inception of dnf.
It is actually "version lock" that was a later addition that came into being, I think, in F25 or F26.
On 11/20/2017 05:27:11 PM, Ed Greshko wrote:
On 11/21/17 07:12, Geoffrey Leach wrote:
On 11/20/2017 06:31:00 AM, Ed Greshko wrote:
On 11/20/17 22:19, Geoffrey Leach wrote:
Now that Mozilla has provided us with its latest and greatest
(sic!)
Firefox, I need to prevent updates to firefox. Dnf does not appear
to
provide a "don't update this" option. Any suggestions?
Sure it does.
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
-- Fedora Users List - The place to go to speculate endlessly
Hmmmm ... let me guess. Feature added in the version included with
Fedora 26? I'm running 25, alas. But thanks, anyways.
NOPE.... As Samuel said, it has been around since the inception of dnf.
It is actually "version lock" that was a later addition that came into being, I think, in F25 or F26.
Ah. For the record, its -x or --exclude. However,that will, "exclude packages by name or glob". I'll give it a try. Thanks.
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. :-) :-)
On 11/20/2017 06:31 AM, Ed Greshko wrote:
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
I'm guessing you have F26. When I check the dnf.conf man page in F25, it only lists the "exclude" option, there is no "excludepkgs" option. I wonder if they added it because the opposite option is called "includepkgs", which was a strange asymmetry. But if the OP is on F25, he might need to use "exclude".
dnf-1.1.10-6.fc25.noarch
Samuel Sieb wrote:
On 11/20/2017 06:31 AM, Ed Greshko wrote:
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
I'm guessing you have F26. When I check the dnf.conf man page in F25, it only lists the "exclude" option, there is no "excludepkgs" option. I wonder if they added it because the opposite option is called "includepkgs", which was a strange asymmetry. But if the OP is on F25, he might need to use "exclude".
dnf-1.1.10-6.fc25.noarch
The documentation was updated in dnf-2.0 to list excludepkgs instead of exclude¹. Both options are still respected in the config, as far as I can see, though using excludepkgs is probably the better one to use if you're not sharing a config file with any f25 systems.
¹ https://github.com/rpm-software-management/dnf/commit/f87536c53#diff-4d744e6...
On 11/21/17 15:27, Samuel Sieb wrote:
On 11/20/2017 06:31 AM, Ed Greshko wrote:
Look at the man page for dnf.conf and check out the option "excludepkgs". It can be placed either in the dnf.conf or in a specific repo file.
I'm guessing you have F26. When I check the dnf.conf man page in F25, it only lists the "exclude" option, there is no "excludepkgs" option. I wonder if they added it because the opposite option is called "includepkgs", which was a strange asymmetry. But if the OP is on F25, he might need to use "exclude".
dnf-1.1.10-6.fc25.noarch
Not on this machine. This one is F27. I could go back and check F26 on a VM if it matters.
dnf-2.7.5-1.fc27.noarch
So, Todd has found the "difference". I suspect, a.k.a. hope, both verbs will be accepted going forward. :-)