Yum: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
Boiarino (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
  rm -f /var/lib/rpm/__db.*
  rm -f /var/lib/rpm/__db.*


On CensOS on VTP, it was some problem:
'''On CensOS on VTP, it was some problem:'''


  Hi Bryan,
  Hi Bryan,
  on yum updates, I tried
  on yum updates, I tried
   [base]
   [base]
   name=CentOS-$releasever - Base
   name=CentOS-$releasever - Base
   baseurl=http://vault.centos.org/altarch/$releasever/os/$basearch/
   baseurl=http://vault.centos.org/altarch/$releasever/os/$basearch/
  and it gives me this:
  and it gives me this:
   http://vault.centos.org/altarch/7/os/armhfp/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently
   http://vault.centos.org/altarch/7/os/armhfp/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently
   Trying other mirror.
   Trying other mirror.
  If I change 'http:' to 'https:' it gives me this:
  If I change 'http:' to 'https:' it gives me this:
   https://vault.centos.org/altarch/7/os/armhfp/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's certificate issuer has been marked as not trusted by the user."
   https://vault.centos.org/altarch/7/os/armhfp/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's certificate issuer has been marked as not trusted by the user."
   Trying other mirror.
   Trying other mirror.
  I added key
  I added key
  sslverify=0
on the next line after https:... and yum seems updating now, will see.
Sergey
Final ''/etc/yum.repos.d/CentOS-Base.repo'' looks like this ($releasever=7 and $basearch=armhfp):
[base]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/altarch/$releasever/os/$basearch/
sslverify=0
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
        file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
   
   
  sslverify=0
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=https://vault.centos.org/altarch/$releasever/updates/$basearch/
sslverify=0
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
        file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
   
   
  on the next line after https:... and yum seems updating now, will see.
  #additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://vault.centos.org/altarch/$releasever/extras/$basearch/
sslverify=0
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
        file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
   
   
  Sergey
  #additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://vault.centos.org/altarch/$releasever/centosplus/$basearch/
sslverify=0
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
        file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32

Latest revision as of 12:04, 17 September 2025

Useful commands:

repoquery -i itcl - tells which repository contains itcl package

To remove package:

yum --setopt=tsflags=noscripts remove <package>

Sometimes it is useful to delete some files:

rm -f /var/lib/rpm/__db.*

On CensOS on VTP, it was some problem:

Hi Bryan,
on yum updates, I tried
  [base]
  name=CentOS-$releasever - Base
  baseurl=http://vault.centos.org/altarch/$releasever/os/$basearch/
and it gives me this:
  http://vault.centos.org/altarch/7/os/armhfp/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently
  Trying other mirror.
If I change 'http:' to 'https:' it gives me this:
  https://vault.centos.org/altarch/7/os/armhfp/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's certificate issuer has been marked as not trusted by the user."
  Trying other mirror.
I added key
 sslverify=0
on the next line after https:... and yum seems updating now, will see.
Sergey

Final /etc/yum.repos.d/CentOS-Base.repo looks like this ($releasever=7 and $basearch=armhfp):

[base]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/altarch/$releasever/os/$basearch/
sslverify=0
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32

#released updates 
[updates]
name=CentOS-$releasever - Updates
baseurl=https://vault.centos.org/altarch/$releasever/updates/$basearch/
sslverify=0
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://vault.centos.org/altarch/$releasever/extras/$basearch/
sslverify=0
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://vault.centos.org/altarch/$releasever/centosplus/$basearch/
sslverify=0
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32