YUM – Install Specific Version of Package

By default, yum installs the latest version of a package among the all versions available in enabled repositories.

Often it is required to install not the latest one, but some specific version or downgrade the already installed package to an older version.

In this note i show how to make yum list all available versions of a specified package and how to instruct it to install the particular one. (more…)

Upgrading CentOS/RHEL from Minimal Installation with YUM

If you have installed CentOS/RHEL Minimal server installation, you may have lots of troubles with not installed packages.

There is a way to install all packages, required by a Basic Server, using yum groupinstall command.

groupinstall – is used to install all of the individual packages in a group, of the specified types.

[groupinstall] – Install a Group of Packages

Upgrade your server from Minimal installation to Basic:

# yum groupinstall "Base"

Upgrade your system to Web Server:

# yum groupinstall "Web Server"

Upgrade your system to MySQL Database Server:

# yum groupinstall "MySQL Database Server"

and so on …

[grouplist] – List Installed and Available Groups

List all installed and available groups:

# yum grouplist

[groupinfo] – List Packages in a Group

Show the description and package list of a group:

# yum groupinfo "Base"

[groupremove] – Remove a Group of Packages

Remove all of the packages in a group:

# yum groupremove "Base"

EPEL Repo: CentOS 8/7/6 – Install & Enable – Yum

The EPEL repository (Extra Packages for Enterprise Linux) is an open source and free community based repository project from Fedora team, which provides 100% high quality add-on software packages for Linux distributions.

The following article describes how to install and enable the EPEL repository on CentOS-8/7/6, how to verify the EPEL installation and how to remove it, if needed. (more…)

Adding RHEL DVD as Repository

Perform the next steps to add RHEL installation DVD as repository.

Step 1: Create mount point and mount the DVD

$ mkdir /mnt/rhel-dvd && mount -t iso9660 -o ro /dev/cdrom /mnt/rhel-dvd

Step 2: Create RHEL repo list and call it ‘rhel-dvd.repo’

$ touch /etc/yum.repos.d/rhel-dvd.repo

Step 3: Add the following config to ‘rhel-dvd.repo’

[rhel-dvd]
name=Red Hat Enterprise Linux $releasever - $basearch - DVD
baseurl=file:///mnt/rhel-dvd/
enabled=1
gpgcheck=0

Step 4: Clean your cache

$ yum clean all

Now you can install the new software from the DVD using ‘yum install’ command.