YUM - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/yum/ Dedicated Servers, Private Cloud & Colocation Mon, 18 Dec 2023 14:49:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 How to clear the YUM cache? https://www.hivelocity.net/kb/how-to-clear-the-yum-cache/ https://www.hivelocity.net/kb/how-to-clear-the-yum-cache/#respond Wed, 30 Jan 2013 14:28:13 +0000 https://kb.hivelocity.net/?p=11125 In this tutorial, you’ll learn the basics of how to clear the yum cache. But first: What is yum? The Yellowdog Updater, Modified (yum) is an open-source command-line package-management utility for Linux operating systems using the RPM Package Manager. Yum allows automatic updates, package and dependency management, on RPM-based distributions. Like the Advanced Packaging Tool …

How to clear the YUM cache? Read More »

The post How to clear the YUM cache? appeared first on Hivelocity Hosting.

]]>
In this tutorial, you’ll learn the basics of how to clear the yum cache. But first:

What is yum?

The Yellowdog Updater, Modified (yum) is an open-source command-line package-management utility for Linux operating systems using the RPM Package Manager. Yum allows automatic updates, package and dependency management, on RPM-based distributions. Like the Advanced Packaging Tool (APT) from Debian, yum works with software repositories (collections of packages), which can be accessed locally or over a network connection. Under the hood, yum depends on RPM, which is a packaging standard for digital distribution of apps, which automatically uses hashes and digisigs to verify the authorship and integrity of such apps; unlike some app stores, which serve a similar function, yum nor RPM provide built-in support for proprietary restrictions on copying of packages by endusers. Yum is implemented as libraries in the Python programming language, with a small set of programs that provide a command-line interface. GUI-based wrappers such as yumex also exist.

How to clear the yum cache:

When a package is downloaded, installed and is removed there is a chance that the package may still be saved/stored in the yum’s cache. So to clean all the cached packages from the enabled repository cache directory, login as root and execute the following:

yum clean packages

To purge the old package information completely, execute the following command:

yum clean headers

To clean any cached xml metadata from any enabled repository, execute the following

yum clean metadata

If you wish to clean all the cached files from any enabled repository at once, execute the

Following command:

yum clean all

 

Popular Links

Looking for more information on YUM? Search our Knowledge Base!

Interested in more articles about Security? Navigate to our Categories page using the bar on the left or check out these popular articles:

Popular tags within this category include: YUM, Maldet, SSL, and more.

Don’t see what you’re looking for? Use the search bar at the top to search our entire Knowledge Base.

 

The Hivelocity Difference

Seeking a better Dedicated Server solution? In the market for Private Cloud or Colocation services? Check out Hivelocity’s extensive list of products for great deals and offers.

With best-in-class customer service, affordable pricing, a wide-range of fully-customizable options, and a network like no other, Hivelocity is the hosting solution you’ve been waiting for.

Unsure which of our services is best for your particular needs? Call or live chat with one of our sales agents today and see the difference Hivelocity can make for you.

The post How to clear the YUM cache? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-clear-the-yum-cache/feed/ 0
How to disable and remove package repositories using YUM. https://www.hivelocity.net/kb/how-to-disable-and-remove-package-repositories-using-yum-command/ https://www.hivelocity.net/kb/how-to-disable-and-remove-package-repositories-using-yum-command/#respond Wed, 30 Jan 2013 14:27:52 +0000 https://kb.hivelocity.net/?p=11123 Disabling a Package Repository: Usually, the package repositories are located in the definition files.You can find them in the directory named /etc/yum.repos.d . In order to disable the file, modify the proper file and set the below given parameter. enable = 0 The above parameter will keep the repository, however it will disable it until …

How to disable and remove package repositories using YUM. Read More »

The post How to disable and remove package repositories using YUM. appeared first on Hivelocity Hosting.

]]>
Disabling a Package Repository:

Usually, the package repositories are located in the definition files.You can find them in the directory named /etc/yum.repos.d . In order to disable the file, modify the proper file and set the below given parameter.

enable = 0

The above parameter will keep the repository, however it will disable it until you decide to use it in future.

Removing the Repository Completely

Simply delete the above file to remove the repository completely.

The post How to disable and remove package repositories using YUM. appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-disable-and-remove-package-repositories-using-yum-command/feed/ 0
Rebuild Bind on cPanel server https://www.hivelocity.net/kb/how-to-rebuild-bind-on-cpanel-server/ https://www.hivelocity.net/kb/how-to-rebuild-bind-on-cpanel-server/#respond Sun, 14 Nov 2010 04:50:11 +0000 https://kb.hivelocity.net/?p=1950 Issue : How to rebuild Bind on cpanel server If your server has YUM installed then perform the following commands on your server: # yum remove bind It will ask you at the bottom to hit Y or N HIT Y for each of them then # yum remove bind-libs It will ask you at …

Rebuild Bind on cPanel server Read More »

The post Rebuild Bind on cPanel server appeared first on Hivelocity Hosting.

]]>
Issue : How to rebuild Bind on cpanel server

If your server has YUM installed then perform the following commands on your server:

# yum remove bind
It will ask you at the bottom to hit Y or N HIT Y for each of them
then

# yum remove bind-libs
It will ask you at the bottom to hit Y or N HIT Y for each of them
then

# yum remove bind-utils
It will ask you at the bottom to hit Y or N HIT Y for each of them

EDIT: To uninstall just use rpm -e bind-chroot-9.2.4-24.EL4

chown named.named /etc/rndc.key
chown named.named /etc/named.conf

The post Rebuild Bind on cPanel server appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-rebuild-bind-on-cpanel-server/feed/ 0
Why am I getting “com_err.h: No such file or directory” error? https://www.hivelocity.net/kb/why-am-i-getting-com_err-h-no-such-file-or-directory-error/ https://www.hivelocity.net/kb/why-am-i-getting-com_err-h-no-such-file-or-directory-error/#respond Sat, 13 Nov 2010 14:15:16 +0000 https://kb.hivelocity.net/?p=1598 If you are getting this error /usr/include/krb5.h:2606:24: et/com_err.h: No such file or directory when compiling, install the e2fsprogs-devel package which provides the required header file To install run the following then try compiling again: yum install e2fsprogs-devel or up2date -u e2fsprogs-devel

The post Why am I getting “com_err.h: No such file or directory” error? appeared first on Hivelocity Hosting.

]]>
If you are getting this error
/usr/include/krb5.h:2606:24: et/com_err.h: No such file or directory

when compiling, install the e2fsprogs-devel package which provides the required header file

To install run the following then try compiling again:

yum install e2fsprogs-devel

or

up2date -u e2fsprogs-devel

The post Why am I getting “com_err.h: No such file or directory” error? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/why-am-i-getting-com_err-h-no-such-file-or-directory-error/feed/ 0
Operating the YUM Package Manager https://www.hivelocity.net/kb/operating-the-yum-package-manager/ https://www.hivelocity.net/kb/operating-the-yum-package-manager/#respond Sat, 13 Nov 2010 12:45:31 +0000 https://kb.hivelocity.net/?p=1477 YUM is a package manager for RPM-based Linux distributions such as Fedora, CentOS and Red Hat Enterprise Linux. It allows users to install, update, remove and search for software packages from various repositories. YUM also resolves dependencies and handles configuration files automatically. YUM stands for Yellowdog Updater Modified and was originally developed for the Yellow …

Operating the YUM Package Manager Read More »

The post Operating the YUM Package Manager appeared first on Hivelocity Hosting.

]]>
YUM is a package manager for RPM-based Linux distributions such as Fedora, CentOS and Red Hat Enterprise Linux. It allows users to install, update, remove and search for software packages from various repositories. YUM also resolves dependencies and handles configuration files automatically. YUM stands for Yellowdog Updater Modified and was originally developed for the Yellow Dog Linux distribution that ran on PowerPC machines.

The most common commands for YUM can be found below. In the examples below we will focus on installing the monitoring application btop.

Installing a Package

To install the btop package we will use the following command:

sudo yum install btop

Screenshot showing the results of the command: sudo yum install btop

Removing a Package

To remove the btop package we will use the following command:

sudo yum remove btop

Screenshot showing the results of the sudo yum remove btop command.

Updating All Packages

Keeping packages updated in Linux is important for several reasons.

  1. First, it ensures that the system has the latest security patches and bug fixes, which can prevent potential attacks or crashes.
  2. Second, it allows the system to benefit from new features and improvements that the developers have added to the packages.
  3. Third, it helps to maintain compatibility and stability with other packages and software that depend on them.

Therefore, updating packages regularly is a good practice for Linux users.

To update packages, use the following command:

sudo yum update

Screenshot showing the results of the sudo yum update command.

*Note: If updates are available, a list will appear. In the example above, none were available.

Listing All Installed Packages

To list all installed packages in the system you can use the first command which will list all of them all the way to the end or the second version of the command with the “| less” option to review each page at a time.

sudo yum list [Full list]

OR

sudo yum list | less [One page at a time]

Screenshot showing the results of the sudo yum list command.

Searching for a Particular Package 

To search for a particular package, the following command can be used. In this example we will search for clamav, the malware scanning tool.

sudo yum search clamav

Screenshot showing the results of the sudo yum search clamav command.

View Package Information

To view package information, we can use the following command. In this example we will search for clamav to display package information, particularly the “clamav.x86_64” we found from the previous command’s output.

sudo yum info clamav.x86_64

Screenshot showing the results of the sudo yum info clamav.x86_64 command.

The post Operating the YUM Package Manager appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/operating-the-yum-package-manager/feed/ 0
Why am I getting gpg signature error when using Yum? https://www.hivelocity.net/kb/why-am-i-getting-gpg-signature-error-when-using-yum/ https://www.hivelocity.net/kb/why-am-i-getting-gpg-signature-error-when-using-yum/#respond Sat, 13 Nov 2010 12:40:48 +0000 https://kb.hivelocity.net/?p=1458 The NOKEY warning is not really a problem. It won’t prevent you from doing anything. If you’d like to resolve it, do the following command to get the correct key for the site you’re downloading from: You must be root to do any of this. download the appropriate RPM-GPG-KEY and run: rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY After …

Why am I getting gpg signature error when using Yum? Read More »

The post Why am I getting gpg signature error when using Yum? appeared first on Hivelocity Hosting.

]]>
The NOKEY warning is not really a problem. It won’t prevent you from doing anything.

If you’d like to resolve it, do the following command to get the correct key for the site you’re downloading from:

You must be root to do any of this.
download the appropriate RPM-GPG-KEY and run:

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY

After you run this, the NOKEY warning will not be displayed.

The post Why am I getting gpg signature error when using Yum? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/why-am-i-getting-gpg-signature-error-when-using-yum/feed/ 0
How do I update my system with yum? https://www.hivelocity.net/kb/how-do-i-update-my-system-with-yum/ https://www.hivelocity.net/kb/how-do-i-update-my-system-with-yum/#respond Sat, 13 Nov 2010 12:39:52 +0000 https://kb.hivelocity.net/?p=1454 Use the update option to upgrade all of your Fedora system software to the latest version with one operation. To perform a full system update, type this command: su -c 'yum update' At the prompt, enter the root password. If you want to automatically update your system The yum package supplied with Fedora Core includes …

How do I update my system with yum? Read More »

The post How do I update my system with yum? appeared first on Hivelocity Hosting.

]]>
Use the update option to upgrade all of your Fedora system software to the latest version with one operation.

To perform a full system update, type this command:

su -c 'yum update'

At the prompt, enter the root password.

If you want to automatically update your system

The yum package supplied with Fedora Core includes scripts to perform full system updates every day. To activate automatic daily updates, enter this command:

su -c '/sbin/chkconfig --level 345 yum on; /sbin/service yum start'

At the prompt, enter the password for the root account.
[Note]
How Daily Updates are Run

There is no separate yum service that runs on your system. The command given above enables the control script /etc/rc.d/init.d/yum. This control script activates the script /etc/cron.daily/yum.cron, which causes the cron service to perform the system update automatically at 4am each day.

The post How do I update my system with yum? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-do-i-update-my-system-with-yum/feed/ 0