Tag Archives: yum

lets go pkg mgr crazy – dpkg, apt, aptitude, rpm, yum, dnf, tdnf #sysadmin #devops

lets go pkg mgr crazy – dpkg, apt, aptitude, rpm, yum, dnf, microdnf, tdnf

dnf

ibm red hat UBI images use

  • microdnf

and vmware photonos introduces the ‘latest’ package manager on the block – tdnf

and they have removed yum localinstall so you have to create your own repo to install an rpm

CentOS 8 v @OracleLinux 8 v IBMredhat 8 network install #devops #sysadmin

CentOS 7/8 network install

it just works ! and autodetects yum repo installation source

VirtualBox_cent8_07_04_2020_10_57_55.png

VirtualBox_cent8_07_04_2020_10_57_27.png

OracleLinux 7/8 network install

you need to manually setup the yum repo installation source

VirtualBox_orac7_04_03_2020_22_39_32.png

IBMredhat 7/8 network install

IT DOESNT !

A) you need a ibm red hat subscription (or ‘free’ developer subscription)

B) even if you have a subscription you need to create your own yum repo server

so you have to install everything from your subscription DVD instead

oracle linux 7 & oracle linux 8 bonus repos

oracle linux 7 & oracle linux 8 bonus repos

oracle linux 7 repos

  • addons
  • developer
  • developer_EPEL
  • latest
  • software_collections

oracle linux 7 yum install

# yum install oraclelinux-developer-release-el7
# yum install oracle-epel-release-el7

oracle linux 7 yum repolist

# yum repolist
Loaded plugins: langpacks, ulninfo
repo id repo name status
ol7_addons/x86_64         Oracle Linux 7Server Add ons (x86_64) 411
ol7_developer/x86_64      Oracle Linux 7Server Development Packages (x86_64)                                    1,254
ol7_developer_EPEL/x86_64 Oracle Linux 7Server Development Packages (x86_64) 31,355
ol7_latest/x86_64         Oracle Linux 7Server Latest (x86_64) 16,661
ol7_software_collections/x86_64  Software Collection Library release 3.0 packages for Oracle Linux 7 (x86_64) 14,433

oracle linux 7 docs

oracle linux 8 repos

  • appstream
  • baseos
  • developer
  • developer_EPEL

oracle linux 8 repo docs

oracle linux 8 yum install

# yum install oraclelinux-developer-release-el8
# yum install oracle-epel-release-el8

oracle linux 8 yum repolist

# yum repolist
Last metadata expiration check: 0:07:13 ago on Mon 06 Apr 2020 14:26:26 EDT.
repo id repo name status
ol8_appstream      Oracle Linux 8 Application Stream (x86_64) 11,621
ol8_baseos_latest  Oracle Linux 8 BaseOS Latest (x86_64) 4,652
ol8_developer      Oracle Linux 8 Development Packages (x86_64)                                        29
ol8_developer_EPEL Oracle Linux 8 EPEL Packages for Development (x86_64) 594

 

IBM Red Hat RHEL Developer 7 is even more locked down than Windows 10 #mktg #fail

IBM Red Hat RHEL Developer 7 is even more locked down than Windows 10 since you cannot even run YUM in a clean install of RHEL 7 without registering your PC with IBM Red Hat.

$ yum update
Loaded plugins: langpacks, product-id, search-disabled-repos, 
subscription-manager

This system is not registered with an entitlement server. 
You can use subscription-manager to register.

There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable 
 To enable custom repositories:
     yum-config-manager --enable

Red Hat Update Subscription procedures

Screenshot from 2020-04-03 12-17-24.png

oracle linux 7 network install yum repo gotcha

oracle linux 7 network install yum repo gotcha(s)

if you have a 800×600 screen scroll down to

goto network & hostname (

  • enable network card
  • enable DHCP

then goto installation source and enter

then set software selection to

  • server with gui (and choose KDE if you are running in a low spec environment)

see also

Oracle Linux 7 yum ++

Theres more than meets the eye to Oracle Linux 7 yum as well as the default yum repo there are also BONUS yum repos for EPEL, NODE etc

You can also connecting to yum mirrors in different Oracle Cloud Infrastructure (OCI) regions

By default you get

# ls -l /etc/yum.repos.d/
total 12
-rw-r--r--. 1 root root 3594 Mar 30 01:28 oracle-linux-ol7.repo
-rw-r--r--. 1 root root 2587 Mar 30 01:27 uek-ol7.repo
-rw-r--r--. 1 root root  226 Mar 30 01:27 virt-ol7.repo

# yum repolist
Loaded plugins: langpacks, ulninfo
repo id                                 repo name                                                                                               status
ol7_UEKR5/x86_64                        Latest Unbreakable Enterprise Kernel Release 5 for Oracle Linux 7Server (x86_64)                           263
ol7_latest/x86_64                       Oracle Linux 7Server Latest (x86_64)                                                                    16,661

but you can update to the latest by running

# yum install oracle-softwarecollection-release-el7

and you will then have more repos available

# cat /etc/yum.repos.d/oracle-softwarecollection-ol7.repo
[ol7_software_collections]
name=Software Collection Library release 3.0 packages for Oracle Linux 7 ($basearch)
baseurl=https://yum$ociregion.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

then to get access to oracle linux 7 EPEL repo run

# yum install yum-utils
# yum-config-mgr --enable oracle-epel-release-el7 
# yum repolist
yum --enablerepo=* repolist

and you should see

repo id                                 repo name                                                                                                    status
ol7_MODRHCK/x86_64                      Latest RHCK with fixes from Oracle for Oracle Linux 7Server (x86_64)                                            619
ol7_UEKR3/x86_64                        Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux 7Server (x86_64)                                984
ol7_UEKR3_OFED20/x86_64                 OFED supporting tool packages for Unbreakable Enterprise Kernel on Oracle Linux 7 (x86_64)                       64
ol7_UEKR4/x86_64                        Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux 7Server (x86_64)                                166
ol7_UEKR4_OFED/x86_64                   OFED supporting tool packages for Unbreakable Enterprise Kernel Release 4 on Oracle Linux 7 (x86_64)            205
ol7_UEKR4_archive/x86_64                Unbreakable Enterprise Kernel Release 4 for Oracle Linux 7Server (x86_64) - Archive                           1,084
ol7_UEKR5/x86_64                        Latest Unbreakable Enterprise Kernel Release 5 for Oracle Linux 7Server (x86_64)                                263
ol7_UEKR5_RDMA/x86_64                   Oracle Linux 7 UEK5 RDMA (x86_64)                                                                               189
ol7_UEKR5_archive/x86_64                Unbreakable Enterprise Kernel Release 5 for Oracle Linux 7Server (x86_64) - Archive                             245
ol7_UEKR6/x86_64                        Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 7Server (x86_64)                                 71
ol7_UEKR6_RDMA/x86_64                   Oracle Linux 7 UEK6 RDMA (x86_64)                                                                                34
ol7_addons/x86_64                       Oracle Linux 7Server Add ons (x86_64)                                                                           411
ol7_kvm_utils/x86_64                    Oracle Linux 7Server KVM Utilities (x86_64)                                                                     441
ol7_latest/x86_64                       Oracle Linux 7Server Latest (x86_64)                                                                         16,661
ol7_latest_archive/x86_64               Oracle Linux 7Server Latest (x86_64) - Archive                                                               24,368
ol7_optional_archive/x86_64             Oracle Linux 7Server Optional (x86_64) - Archive                                                             19,061
ol7_optional_latest/x86_64              Oracle Linux 7Server Optional Latest (x86_64)                                                                12,153
ol7_security_validation/x86_64          Oracle Linux 7Server (x86_64) Security Validations                                                               86
ol7_software_collections/x86_64         Software Collection Library release 3.0 packages for Oracle Linux 7 (x86_64)                                 14,433
ol7_u0_base/x86_64                      Oracle Linux 7Server GA installation media copy (x86_64)                                                      6,171