Currently set to No Index

Clean Your YUM Out!

yum-package-manager-red-hat

YUM is a package manager and updater service for Red Hat Linux, and if you’re part of the Red Hat Network, you’re likely already using the offering to keep your applications fresh. YUM makes sure your various server components are as up to date as they can be, bringing you the latest and greatest in Red Hat without much fuss.

That being said, your YUM repositories aren’t set in stone. These are the places the service goes to when it needs to find new packages, or compare your existing software to the latest releases. These files can be edited in a number of ways, and if you haven’t messed with them before, you should likely follow the steps mentioned below to keep your Red Hat cruising along at maximum capacity.

RELATED:   How And When To Offer SSH Access To Your Customers

Know How To Disable A Source

The repositories that YUM trolls can be found at the following file directory within your main server installation:

/etc/yum.repos.d

Within this directory, you’ll find a myriad of files listed as repository sources. Each of these can be edited to your hearts content, and if you want to disable a source for your YUM updater, this is the way to go. Once you’ve located a source you’d like to disable, simply change the appropriate line of code within the file to:

enable = 0

This will disable the source, but only in the sense that YUM will no longer pull information from it. The repository file is still stored on your system, which is good if you’d ever like to return to that source again. However, if you’d like to permanently disable a repository, simply delete the appropriate file from your system.

RELATED:   How to Bring Your Site Online? A Guide for the Small Businesses

Clean Your Cache, Captain!

If you’ve been messing about with downloading and installing third party repositories, and have subsequently deleted your explorations, what you may not know is that your old files may still be junking up your repository cache. To clear the thing out, and speed up your server, commit the following lines to terminal:

yum clean packages

Be sure to type this as root, and once that’s managed, go back and enter this line, as well:

yum clean headers

 This completely purges your system, removing any old packages that may have been left lingering about. The second line ensures your header repositories are purged as well. If you’re feeling particularly gung-ho, you can always enter this line to perform both functions in one fell swoop:

RELATED:   Do-it-yourself Virtualization

yum clean all

How to Find a Successful Name For Your New Blog?
How to Find a Successful Name For Your New Blog?

One of the most important decisions you can make to ensure your blog is among the best is to select a name. While there are more than 500 million blogs available...

How-to Start a Blog – Review of the Best 10 Blogging Platforms
How-to Start a Blog – Review of the Best 10 Blogging Platforms

If you want to start a blog as fast as possible, then you need to consider choosing a blogging platform. Thankfully, there are some excellent free and paid blogging platforms...

How Referral Marketing Can Benefit Web Hosts
How Referral Marketing Can Benefit Web Hosts

Even if the niche of web hosts are fully loaded with a lot of companies they are still one of the easiest to promote because you could write your own...

Broken Links: How to Find, Fix, and Benefit from Broken Links
Broken Links: How to Find, Fix, and Benefit from Broken Links

Links are what holds the web together. Essentially, the web is named as such because of the ability for pages and sites to link to other sources and relevant information....

Brand Value & the Most Powerful Brands (with Infographic)
Brand Value & the Most Powerful Brands (with Infographic)

Brand value – everyone wants it, however, only few are able to achieve it. The subject of “brand value” holds a significant position amongst marketers, executives, and entrepreneurs. Let’s discuss...

Reasons why your business should shift to Cloud hosting
Reasons why your business should shift to Cloud hosting

Cloud hosting has been on the rise since its inception. The improvement to your website performance and business efficiency that comes with Cloud hosting is almost tangible.

Why We Love the IT Support Career?
Why We Love the IT Support Career?

In almost all of my posts I was talking about the stressful side of the IT – the long hours, end user issues, migrations, midnight calls and the like. But...

IT Manager: Ways To Show Your Appreciation To Your Team
IT Manager: Ways To Show Your Appreciation To Your Team

Surely your team struggled hard and made things happen. You cannot say “this is what you get paid for” and just leave – you cannot keep your IT staff that...

1 Comment

  • Avatar for James Lopeman James Lopeman says:

    One time disable repo : –disablerepo=name
    To get the names use yum repolist

    yum clean all
    There is a lot more things to clean

    Meflin

Leave a Reply

Your email address will not be published. Required fields are marked *