AIX Open Source

Expand all | Collapse all

Adding rpms to yum repository

  • 1.  Adding rpms to yum repository

    Posted 3 days ago
    Edited by Nagesh Nukala 3 days ago
    Hello Experts ,

    Our AIX guy left and I took over his work . I am trying to address SQLite vulnerability , it should be upgraded  from 3.23.0.1  to 3.32-2 on both AIX 71. and 7.2 servers . I never worked with YUM repositories, any help is appreciated .below is my  current setup .

    *  is there an option to pull ALL latest rpms automatically from IBM AIX Toolbox  or do I have to download them manually and add it to our repos manually , how to check this ?
    * If I have to manually download and update my repositories , what are the steps ?

    root@server1 /   .......................... This is  my client
    --> yum repolist  
    repo id repo name status
    AIX_Toolbox                AIX generic repository          2,669
    AIX_Toolbox_72          AIX 7.2 specific repository    68
    AIX_Toolbox_noarch   AIX noarch repository           148
    repolist: 2,885

    root@client1 /opt/freeware/etc/yum
    --> cat yum.conf
    [main]
    cachedir=/var/cache/yum
    keepcache=1
    debuglevel=2
    logfile=/var/log/yum.log
    exactarch=1
    obsoletes=1

    [AIX_Toolbox]
    name=AIX generic repository
    baseurl= http://server1.edc.nam.gm.com/aixtoolbox/AIX_Toolbox
    gpgcheck=0

    [AIX_Toolbox_noarch]
    name=AIX noarch repository
    baseurl= http://server1.edc.nam.gm.com/aixtoolbox/AIX_Toolbox_noarch
    gpgcheck=0

    [AIX_Toolbox_72]
    name=AIX 7.2 specific repository
    baseurl= http://server1.edc.nam.gm.com/aixtoolbox/AIX_Toolbox_72/
    gpgcheck=0
    root@client1 /opt/freeware/etc/yum


    YUM server:
    root@server1 /usr/IBMAHS/htdocs/aixtoolbox
    --> ll
    total 88
    drwxr-xr-x 432 web web 28672 Mar 04 2020 AIX_Toolbox
    drwxr-xr-x 9 web web 256 Mar 04 2020 AIX_Toolbox_61
    drwxr-xr-x 10 web web 4096 Mar 04 2020 AIX_Toolbox_71
    drwxr-xr-x 12 web web 4096 Mar 04 2020 AIX_Toolbox_72
    drwxr-xr-x 43 web web 4096 Mar 04 2020 AIX_Toolbox_noarch
    drwxr-xr-x 2 root system 4096 Feb 16 2020 yum

    Thanks

    ------------------------------
    Nag Nukala
    ------------------------------


  • 2.  RE: Adding rpms to yum repository

    Posted 3 days ago
    If your repo server can connect to Toolbox, then you can do reposync. This will update your repos with latest rpms.
    Look into this article for more details --> https://developer.ibm.com/articles/configure-yum-on-aix/

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



  • 3.  RE: Adding rpms to yum repository

    Posted 3 days ago
    Edited by Nagesh Nukala 3 days ago
    Thanks Ayyappan for the response, 
    ------------------------------
    Nagesh Nukala
    ------------------------------



  • 4.  RE: Adding rpms to yum repository

    Posted 3 days ago
    Thanks for the link , it helped me .. I ran below commands  and it downloaded and I updated the repo
    reposync -p /usr/IBMAHS/htdocs/aixtoolbox -r AIX_Toolbox 
    createrepo /usr/IBMAHS/htdocs/aixtoolbox/AIX_Toolbox   
    Moved repodata directory as create repo failed   and reran

    on client  I see below error  when I run yum update sqlite

    Setting up Update Process

         No Packages marked for Updat

    ran yum clean all ... which fixed the issue

    ------------------------------
    Nagesh Nukala
    ------------------------------