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.

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

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 Mon, Nov 20, 2017 at 8:31 AM, Ed Greshko <ed.greshko(a)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

On 20/11/17 16:52, Richard Shaw wrote:
> On Mon, Nov 20, 2017 at 8:31 AM, Ed Greshko <ed.greshko(a)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/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

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: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 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.
--
Fedora Users List - The place to go to speculate endlessly

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/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.

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

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-4d74...
--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have an existential map; it has 'you are here' written all over it.
-- Steven Wright

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. :-)
--
Fedora Users List - The place to go to speculate endlessly