AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  DNF -- How to "lock" certain packages from being updated

    Posted Thu April 20, 2023 01:40 PM

    Team:

    As the AIX version of DNF doesn't appear to have an "--versionlock" option it seems that the "--excludepkgs" is the way to go [Question: Any particular reason why this option cannot be made available?]

    I also see that in dnf.conf there is a directive for "exclude=" however I'm not sure if this is valid for the AIX deployment of DNF.

    Any thoughts/advice on this please?

    Many thanks, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------


  • 2.  RE: DNF -- How to "lock" certain packages from being updated

    Posted Thu April 20, 2023 03:00 PM
    versionlock is supposed to be in dnf-plugins-core... got that? I don't have a system in front of me right now to rightist if it installed automatically with dnf.

    -- 
    Stephen Ulmer

    Sent from a mobile device; please excuse auto-correct silliness.





  • 3.  RE: DNF -- How to "lock" certain packages from being updated

    Posted Fri April 21, 2023 04:19 AM

    You'll need to install the version-lock module for dnf.  Same as with yum, version-lock is an extra module that you need to install, it's not there by default.



    ------------------------------
    Phill Rowbottom
    ------------------------------



  • 4.  RE: DNF -- How to "lock" certain packages from being updated

    Posted Fri April 21, 2023 05:22 AM

    Stephen/Phill,

    I checked dnf-plugins-core, no mention of version-lock.

    # dnf update dnf-plugins-core
    Last metadata expiration check: 19:11:10 ago on Thu Apr 20 10:05:02 EDT 2023.
    Dependencies resolved.
    Nothing to do.
    Complete!
    # dnf info dnf-plugins-core
    Last metadata expiration check: 19:11:25 ago on Thu Apr 20 10:05:02 EDT 2023.
    Installed Packages
    Name         : dnf-plugins-core
    Version      : 4.0.16
    Release      : 64_51
    Architecture : ppc
    Size         : 0.0
    Source       : dnf-plugins-core-4.0.16-64_51.src.rpm
    Repository   : @System
    From repo    : AIX_Toolbox_73
    Summary      : Core Plugins for DNF
    URL          : https://github.com/rpm-software-management/dnf-plugins-core
    License      : GPLv2+
    Description  : Core Plugins for DNF. This package enhances DNF with builddep, config-manager,
                 : copr, debug, debuginfo-install, download, needs-restarting, repoclosure,
                 : repograph, repomanage, reposync, changelog and repodiff commands. Additionally
                 : provides generate_completion_cache passive plugin.
    
    #
    


    Where else might it be hiding?

    Many thanks, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 5.  RE: DNF -- How to "lock" certain packages from being updated

    Posted Fri April 21, 2023 05:24 AM

    The rpm name is python3-dnf-plugin-versionlock



    ------------------------------
    Ayappan P
    ------------------------------



  • 6.  RE: DNF -- How to "lock" certain packages from being updated

    Posted Fri April 21, 2023 05:47 AM

    Ayappan,

    Ah!  Thanks for sharing, now have it installed :-)

    # dnf | grep versionlock
    versionlock               control package version locks


    Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 7.  RE: DNF -- How to "lock" certain packages from being updated

    Posted Fri April 21, 2023 05:23 AM
    Edited by Ayappan P Fri April 21, 2023 09:21 AM
      |   view attached
    Hi,
     
    I have tested this plugin some days ago and it's quite handy.

    Please have a look at the file attached, there is one example on how to install the plugin and hold httpd version.






    ------------------------------
    Peter Furtado
    ------------------------------

    Attachment(s)

    txt
    dnf-versionlock_sample.txt   12 KB 1 version