How to use yum command on CentOS/RHEL

How do I use the yum command to update and patch my Red hat Enterprise Linux / CentOS Linux version 5.x/6.x/7.x server via RHN or the Internet? Can I use up2date command under a RHEL v5.x?

up2date command was part of RHEL v4.x or older version. You need to use yum command to update and patch the system using RHN or Internet. Use yum command to install critical and non-critical security updates as well as binary packages.
Login as the root user to install and update the system. This page show examples of common sysadmin tasks that you can perform using yum command on a CentOS or RHEL.

How to register my RHEL based system with RHN

To register your RHEL 5.x system with RHN type the following command and just follow on screen instructions (CentOS user skip to the next step):
# rhn_register
To register your RHEL 7.x system with RHN type the folllwong
# subscription-manager register --username tom --password jerry --auto-attach

WARNING! These examples only works with RHEL / CentOS Linux version 5.x or above. For RHEL 4.x and older version use up2date command.

How to display a list of updated software and security fix

Type the following command at shell prompt:
# yum list updates
Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Updated Packages
apr.x86_64                                        1.3.9-5.el6_9.1                               updates
device-mapper.x86_64                              1.02.117-12.el6_9.1                           updates
device-mapper-libs.x86_64                         1.02.117-12.el6_9.1                           updates
kernel-devel.x86_64                               2.6.32-696.16.1.el6                           updates
kernel-headers.x86_64                             2.6.32-696.16.1.el6                           updates
libblkid.x86_64                                   2.17.2-12.28.el6_9.1                          updates
libuuid.x86_64                                    2.17.2-12.28.el6_9.1                          updates
util-linux-ng.x86_64                              2.17.2-12.28.el6_9.1                          updates

How to find out whether updates exist for packages that are already installed on my system

# yum check-update

Patch up system by applying all updates

To download and install all updates type the following command:
# yum update
Sample outputs:

Updates all CentOS 6.x packages including packages on which they depend

You can only apply security-related package updates using the following syntax:
$ sudo yum update --security

To update specified packages

Updates the specified package. The syntax is
$ yum update {package-name-1}
To check for and update httpd package, enter:
$ sudo yum update httpd
You can update one packages to a particular version say nginx using the following syntax:
$ ## first find a list of all dups ##
$ yum --showduplicates list nginx
$ ## now update to particular version ##
$ sudo yum update-to nginx-version
$ sudo yum update-to nginx-1.12.2-1.el7

List all installed packages

To list all installed packages, enter:
$ rpm -qa ## not recommend just use yum ##
$ yum list installed

Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Installed Packages
GeoIP.x86_64                                       1.5.0-11.el7                                @base   
OpenEXR-libs.x86_64                                1.7.1-7.el7                                 @base   
SDL.x86_64                                         1.2.15-14.el7                               @base   
ShellCheck.x86_64                                  0.3.5-1.el7                                 @epel   
acl.x86_64                                         2.2.51-12.el7                               @base   
alsa-lib.x86_64                                    1.1.3-3.el7                                 @base   
apr.x86_64                                         1.4.8-3.el7_4.1                             @updates
apr-util.x86_64                                    1.5.2-6.el7                                 @base   
atk.x86_64                                         2.22.0-3.el7                                @base   
atk-devel.x86_64                                   2.22.0-3.el7                                @base   
atlas.x86_64                                       3.10.1-12.el7                               @base   
audit-libs.x86_64                                  2.7.6-3.el7                                 @base   
autoconf.noarch                                    2.69-11.el7                                 @base   
autogen-libopts.x86_64                             5.18-5.el7                                  @base   
yum-plugin-fastestmirror.noarch                    1.1.31-42.el7                               @base   
zip.x86_64                                         3.0-11.el7                                  @base   
zlib.x86_64                                        1.2.7-17.el7                                @base   
zlib-devel.x86_64                                  1.2.7-17.el7                                @base

Find out if httpd package installed or not on the system

$ rpm -qa | grep httpd*
$ yum list installed httpd

Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Installed Packages
httpd.x86_64                               2.4.6-67.el7.centos.6                               @updates

Lists all packages that are available to install all packages that are installed on system

$ yum list
$ yum list
$ yum list | more ## [ Use more command to show info one screen at a time ] ##
$ yum list | grep bash ## [ Use grep command to filter out results ] ##

Lists all packages that are available for installation

$ yum list available
$ yum list available | more
$ yum list available | grep nginx

How to search for packages by name

You can search the package descriptions for the specified string using search command. The list command can be used too. To search httpd and all matching perl packages, enter:
$ yum list {package-name}
$ yum list {regex}
$ yum list httpd
$ yum list perl*
$ yum search {package-name}
$ yum search nginx
$ yum search nginx*

Sample output from yum list perl*:

Loading "installonlyn" plugin
Loading "security" plugin
Setting up repositories
Reading repository metadata in from local files
Installed Packages
perl.i386                                4:5.8.8-10.el5_0.2     installed       
perl-Archive-Tar.noarch                  1.30-1.fc6             installed       
perl-BSD-Resource.i386                   1.28-1.fc6.1           installed       
perl-Compress-Zlib.i386                  1.42-1.fc6             installed       
perl-DBD-MySQL.i386                      3.0007-1.fc6           installed       
perl-DBI.i386                            1.52-1.fc6             installed       
perl-Digest-HMAC.noarch                  1.01-15                installed       
perl-Digest-SHA1.i386                    2.11-1.2.1             installed       
perl-HTML-Parser.i386                    3.55-1.fc6             installed   
perl-libxml-perl.noarch                  0.08-1.2.1             base            
perl-suidperl.i386                       4:5.8.8-10.el5_0.2     updates

How to see detailed information about a package

The syntax is:
$ yum info {pkg-1} {pkg-2}
$ yum info htop
$ yum info nginx htop

Sample outputs:

Displays detailed information about a package on a RHEL/CentOS Linux server

How to show dependencies list for a package

The syntax is:
$ yum deplist {pkg}
## show for htop pkg
$ yum deplist htop

Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
package: htop.x86_64 2.0.2-1.el7
   provider: glibc.x86_64 2.17-196.el7_4.2
   provider: libgcc.x86_64 4.8.5-16.el7_4.1
   provider: libgcc.x86_64 4.8.5-16.el7_4.1
   provider: libgcc.x86_64 4.8.5-16.el7_4.1
   provider: glibc.x86_64 2.17-196.el7_4.2
   provider: glibc.x86_64 2.17-196.el7_4.2
   provider: ncurses-libs.x86_64 5.9-14.20130511.el7_4
   provider: ncurses-libs.x86_64 5.9-14.20130511.el7_4
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.17-196.el7_4.2
   provider: glibc.i686 2.17-196.el7_4.2

How to install the specified packages [ RPM(s) ]

To install package called httpd:
# yum install {package-name-1} {package-name-2}
# yum install httpd
# yum install nginx mariadb-server php-fpm
# yum install htop

Sample outputs:

Installs the specified package named htop on a CentOS/RHEL

To install a package from a local file called foo.rpm or http, or ftp mirror:
$ sudo yum localinstall foo.rpm
$ sudo yum

It is possible to install particular version too. To find or show duplicates, in repos, in list/search commands
$ yum --showduplicates list php
$ ## now install to particular version ##
$ sudo yum update-to php-version
$ sudo yum update-to php-7.0.2-1.nix

How to downgrade a package to an earlier version

The syntax is:
# yum downgrade {pkg}
# yum downgrade nginx

How to reinstall a package again

The syntax is:
# yum reinstall {pkg}
# yum reinstall httpd

How to remove / uninstall the specified packages [ RPM(s) ]

Remove package called httpd, enter:
# yum remove {package-name-1} {package-name-2}
# yum erase {package-name-1} {package-name-2}
# yum remove httpd
# yum erase htop

How to remove unneeded/unwanted packages/deps

The syntax is:
# yum autoremove
Sample outputs:

Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package tcp_wrappers-libs.x86_64 0:7.6-77.el7 will be erased
--> Finished Dependency Resolution
--> Finding unneeded leftover dependencies
Found and removing 0 unneeded dependencies
Dependencies Resolved
 Package                        Arch                Version                   Repository          Size
 tcp_wrappers-libs              x86_64              7.6-77.el7                @base              131 k
Transaction Summary
Remove  1 Package
Installed size: 131 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : tcp_wrappers-libs-7.6-77.el7.x86_64                                                 1/1 
  Verifying  : tcp_wrappers-libs-7.6-77.el7.x86_64                                                 1/1 
  tcp_wrappers-libs.x86_64 0:7.6-77.el7                                                                

Display the list of available packages

$ yum list all

Display list of group software

Type the following command:
$ yum grouplist
$ yum groups list

Installed Groups:
   Engineering and Scientific
   MySQL Database
   System Tools
   Text-based Internet
   Legacy Network Server
   DNS Name Server
   Dialup Networking Support
   FTP Server
   Network Servers
   Legacy Software Development
   Legacy Software Support
   Development Libraries
   Web Server
   Printing Support
   Mail Server
   Server Configuration Tools
   PostgreSQL Database
Available Groups:
   Administration Tools
   Development Tools
   GNOME Software Development
   X Software Development
   GNOME Desktop Environment
   Authoring and Publishing
   Games and Entertainment
   Java Development
   X Window System
   Windows File Server
   KDE Software Development
   KDE (K Desktop Environment)
   Sound and Video
   FreeNX and NX
   News Server
   Yum Utilities
   Graphical Internet

Install all the default packages by group

Install all ‘Development Tools’ group packages, enter:
# yum groupinstall "Development Tools"
# yum groups install "Development Tools"

Update all the default packages by group

Update all ‘Development Tools’ group packages, enter:
# yum groupupdate "Development Tools"
# yum groups update "Development Tools"

Remove all packages in a group

Remove all ‘Development Tools’ group packages, enter:
# yum groupremove "Development Tools"
# yum groups remove "Development Tools"

Display description and contents of a package group

$ yum groupinfo 'Development Tools'
$ yum groups info 'Development Tools'
$ yum groups info 'File and Print Server'

Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Environment Group: File and Print Server
 Environment-Id: file-print-server-environment
 Description: File, print, and storage server for enterprises.
 Mandatory Groups:
 Optional Groups:

Install particular architecture package

If you are using 64 bit RHEL version it is possible to install 32 packages (please note that 32 bit support is dropped in the latest version of CentOS/RHEL 7.x):
# yum install {package-name}.{architecture}
# yum install mysql.i386

Display packages not installed via official RHN subscribed repos

Show all packages not available via subscribed channels or repositories i.e show packages installed via other repos:
$ yum list extras
Sample output:

Loading "installonlyn" plugin
Loading "security" plugin
Setting up repositories
Reading repository metadata in from local files
Extra Packages
DenyHosts.noarch                         2.6-python2.4          installed       
VMwareTools.i386                         6532-44356             installed       
john.i386                             installed       
kernel.i686                              2.6.18-8.1.15.el5      installed       
kernel-devel.i686                        2.6.18-8.1.15.el5      installed       
lighttpd.i386                            1.4.18-1.el5.rf        installed       
lighttpd-fastcgi.i386                    1.4.18-1.el5.rf        installed       
psad.i386                                2.1-1                  installed       
rssh.i386                                2.3.2-1.2.el5.rf       installed  

Display what package provides the file

You can easily find out what RPM package provides the file. For example find out what provides the /etc/passwd file:
$ yum whatprovides /etc/passwd
$ yum provides /etc/passwd
Sample output:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
setup-2.8.71-7.el7.noarch : A set of system configuration and setup files
Repo        : base
Matched from:
Filename    : /etc/passwd

setup-2.8.71-7.el7.noarch : A set of system configuration and setup files
Repo        : @base
Matched from:
Filename    : /etc/passwd

You can use same command to list packages that satisfy dependencies:
$ yum whatprovides {dependency-1} {dependency-2}
$ yum provides string
$ yum provides '*bin/nginx*'

How to clean yum cache

You can delete all cached and downloaded package, headers and other info:
# yum clean all
Sample outputs:

Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors

Above command can help to clear problems that can result from out-of-date headers, network errors and more. To check the local RPM database for problems:
# yum check

How to list software repositories

$ yum repolist
Sample outputs:

repo id                          repo name                                                      status
base/7/x86_64                    CentOS-7 - Base                                                 9591
epel/x86_64                      Extra Packages for Enterprise Linux 7 - x86_64                 12155
extras/7/x86_64                  CentOS-7 - Extras                                                327
nginx/x86_64                     nginx repo                                                       313
updates/7/x86_64                 CentOS-7 - Updates                                              1573
repolist: 23959

See information about enabled yum repositories

To get info about nginx repo, run:
$ yum repoinfo nginx
Sample outputs:

Repo-id      : nginx/x86_64
Repo-name    : nginx repo
Repo-status  : enabled
Repo-revision: 1511279401
Repo-updated : Tue Nov 21 15:50:07 2017
Repo-pkgs    : 313
Repo-size    : 143 M
Repo-baseurl :
Repo-expire  : 21600 second(s) (last: Sat Dec 23 16:49:24 2017)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/nginx.repo
repolist: 313

How to work with given repository

The syntax is:
# yum repo-pkgs repo_name_id <list|install|remove|upgrade|reinstall> [pkg]
List all packages from nginx repository:
# yum repo-pkgs nginx list
Get info about nginx package from nginx repository:
# yum repo-pkgs nginx info | more
# yum repo-pkgs nginx info nginx

Install a package named ‘nginx’ from nginx repository:
# yum repo-pkgs nginx install nginx
Install ALL PACKAGES from nginx repository:
# yum repo-pkgs nginx install
Erase/remove/delete a package named ‘nginx’ from nginx repository:
# yum repo-pkgs nginx remove nginx
Erase/remove/delete ALL PACKAGES from nginx repository:
# yum repo-pkgs nginx remove
Upgrade nginx package from nginx repository:
# yum repo-pkgs nginx upgrade nginx
Reinstall nginx package from nginx repository:
# yum repo-pkgs nginx reinstall nginx

How to view and use yum history

The syntax is:
# yum history
# yum history list
# yum info ID
# yum undo ID
# yum redo ID

See “CentOS / RHEL: See Detailed History Of yum Commands” for more info.

How to see help about yum command

Refer yum command man page for more information:
$ man yum
$ yum help
$ yum help install
$ yum help erase

Sample outputs:

Loaded plugins: fastestmirror
erase PACKAGE...

Remove a package or packages from your system

alias: remove

Summary of yum command

Command name Description/usage
yum check-update Display list of available package updates
yum update
yum update pkg1
Update all packages or update the pkg1 package
yum install pkg Install a package
yum localinstall pkg.rpm Install a package from a file named pkg.rpm
yum erase pkg Remove a package
yum remove pkg Same as above
yum autoremove Free disk space by removing unwanted packages
yum reinstall pkg Reinstall a package
yum downgrade pkg Downgrade a package to an older version
yum check Check rpm database for errors/problems
yum clean packages Delete cached packages database
yum clean all Delete out all packages and meta data from disk cache
yum list
yum list installed
yum list php
yum list available
List package names
yum deplist pkg1 Show dependencies for a pkg1
yum info pkg Show info about a package
yum search pkg
yum search regex
Search package names
yum provides string
yum whatprovides string
List package that provides the given file or other info
yum history list Show a list of all yum command history action such as install/update/erase
yum history info ID Get info of yum action ID
yum history undo ID Undo the yum command action from ID
yum history redor ID Redot the yum command action from ID
yum grouplist List package groups
yum groupinstall ‘Group Name’ Install all packages in the given group name
yum groupinfo ‘Group Name’ See packages in the given group name
yum groupremove ‘Group Name’ Remove/Delete all packages in the selected group
yum repolist Show a list of all enabled repositories
yum repoinfo repoID Show info about repoID
yum repo-pkgs repoID list Show packages from repoID repo
yum repo-pkgs repoID install Install all packages from repoID repo
yum repo-pkgs repoID remove Erase all packages from repoID repo
yum repo-pkgs repoID reinstall Reinstall all packages from repoID repo
yum help
yum help commandman yum
Show help about yum command or read yum command man page
This entry is 3 of 5 in the Enable EPEL Repository on a CentOS/RHEL Tutorial series. Keep reading the rest of the series:
  1. CentOS / RHEL / Scientific Linux 6/5 Enable and Install EPEL Repo
  2. How To Install EPEL Repo on a CentOS and RHEL 7.x
  3. yum command: Update / Install Packages Under Redhat Enterprise / CentOS Linux Version 5.x
  4. Install and enable EPEL repo on an RHEL 8.x
  5. CentOS 8 Install and enable EPEL repo

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 78 comments so far... add one

CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
78 comments… add one
  • Fil Jan 14, 2009 @ 23:44

    Is it possible to update a red hat enterprise 5, without red hat network registration??


    • Santosh yadav Jul 20, 2011 @ 10:29

      yes u can update.

    • krishnadas Aug 19, 2013 @ 6:33

      Change the repository to cent os repos..then you can update it.

      • Narsi Jul 30, 2014 @ 14:08

        use oracle linux repos, it will work

  • santosh Apr 8, 2009 @ 14:23

    Hello there

    Hi am having problem entering graphic mode in RHEL 5.0,
    When am booting into os, It coming up with an error
    Cant find x-server, Try to install x-server….
    and then it going to text mode for a min and throwing that error
    Can any one help me plssss

    thnx in advance

    • vikram Jul 27, 2010 @ 3:54

      i found that something u have entered in inittab,u just change the appropriate run level and change to x-server environment…..the locaton of intitab is vim /etc/inttab…

    • sumit Aug 26, 2010 @ 7:57

      go to /etc/inittab make settings of runlevels

  • mohan Apr 14, 2009 @ 7:00

    Hi santosh

    allready u gone text mode u give command init 5 it is find graphical mode

  • mohan Apr 14, 2009 @ 7:04

    Hello there

    Hi am having problem entering graphic mode in RHEL 5.0,
    When am booting into os, It coming up with an error
    Cant find x-server, Try to install x-server….
    and then it going to text mode for a min and throwing that error
    Can any one help me plssss

    thnx in advance

    • Pushkar kumar Jun 21, 2011 @ 16:52

      Hi mohan,
      how r u,
      your problem is booting error
      because u system unintall x-server. so pls install the x-server,

      • mitesh Jul 17, 2013 @ 7:15

        hi puskhar kumar,
        if you want to install linux or fedora or centos first of all you set a bois setup to first set a cdrom to select for booting process then restart your system and then press f9 then automatically to process for a next version installation.

  • Yum May 6, 2009 @ 14:05

    It is possible to configure yum to install rpms from local media, using the following method:

    1. Create a new repository file: /etc/yum.repos.d/local.repo

    2. Type the following:

    name=Red Hat Local Repository

    The baseurl should be web-encoded (ie space=%20) point to the local media which contains the rpms to install and any dependent rpms, and the folder repodata/ with repomd.xml and TRANS.TBL.

    3. Finally, run (as root):

    yum install [package]

    • shailendra Oct 12, 2010 @ 11:41

      nice feature

  • manidhar karan Jun 20, 2009 @ 6:13

    thanks to hellp

  • PCMaind Jul 8, 2009 @ 11:29

    this is to better commands of other command
    bcoz another commands are so hard it is true
    and this commands is very simple .

    so thanks for this commands,
    bye tc , have good day all .

  • PCMaind Jul 8, 2009 @ 11:34

    i have a problem about a ubuntu (linux),
    the error show, when i insert a disk of film in dvdrom then the error shows

    the PlayBack of this movie requires a VCD protocol source plugin which is not installed

    plz give me a solucation about this error.

  • milan Jul 12, 2009 @ 9:10

    4 yum installation
    stp1- cp /etc/yum.repos.d/rhel(press tab) /etc/yum.repos.d/Server.repo
    stp2- vi /etc/yum.reppos.d/Server.repo
    stp3- in 3rd lin after ftp giv //ur machine ip/pub/Server (becz my Server is copy 2 pub)
    stp4- createrepo -v /var/ftp/pub/Server
    stp5- service vsftpd restart
    stp6- yum update
    thank u i am 2nd year eng student

  • adeniyi morakinyo Aug 12, 2009 @ 14:21

    i have this error when instaling yum

    # yum update
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    No module named sqlitecachec

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It’s possible that the above module doesn’t match the
    current version of Python, which is:
    2.4.3 (#1, Jan 14 2008, 18:32:40)
    [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

    If you cannot solve this problem yourself, please go to
    the yum faq at:

    • lol May 19, 2016 @ 15:26

      yum install sqlitecachec

  • ashish Aug 20, 2009 @ 8:21

    This is wonderful way to learn possible problems.

  • tosa Aug 21, 2009 @ 21:42

    I had installed yum from package cd.
    I am having dell inspiron 1525 and have problem in running wifi , so can yum help me to install my wifi drivers compatible to my machine.

  • The Doctor Oct 30, 2009 @ 15:45

    Thank you for this post. I didn’t know about the ‘groupremove’ function of YUM. That’s going to save HOURS of time later!

  • phanindra Nov 11, 2009 @ 6:59

    Hi hello, this is phanindra
    I am having dell latitude 510 lappy and having a problem in running wifi, so can u help me hou to install the wifi drivers tat r compatible to my machine

  • sivaraj Dec 2, 2009 @ 8:21

    how to take system backup on centos through graphical mode

  • charanjit Dec 11, 2009 @ 12:22


    I want to whats the command to install all the RPMS in one command in RHEL5.


  • kamla nand raman Dec 28, 2009 @ 4:44

    This is the best class architecture of installation of yum.

    your team…

  • Ashish bachchan Jan 27, 2010 @ 22:51

    I’m having problem in installing VLC media player can someone help me I’ll gratefull to the person.
    I’ve even configured YUM but still I think there is something to know that I don’t so please some body help me ………….

    Ashish Bachchan

    • Santosh Sep 7, 2011 @ 9:24

      install using
      yum install vlc* for centos,redhat,
      sudo apt-get install vlc* for ubauntu


  • gulshah Feb 3, 2010 @ 11:59

    thanks allot

  • Santosh M Apr 7, 2010 @ 13:33

    What is the command to add a YUM service on RHEL agent?


  • adminCAE Apr 10, 2010 @ 16:53

    Hi all,

    I have a problem with installation of an software. I have installed on my laptop CentOS5.4 with all repositories activate (I think) and yum upgrade and update. I working in engineering domain, so I am curious how works ANSYS 11 on Linux 64 biti (at my work I use ANSYS on windows).
    I installed first on Ubuntu9.10 (unfortunately not all modules works fine) and installation it was ok, and I tested and everything works done. After that I try to install it on CentOS because this software is made to works done only on Rhel platform (.rpm). So, I encountered the next message, which I don’t understand what means and why appear:

    >bash: ./INSTALL: /bin/sh: bad interpreter: Permission denied

    after that I try:

    >rpm -i INSTALL

    after that I try:

    >sudo ./INSTALL
    sudo: unable to execute ./INSTALL: Success

    I waiting yours answer or opinion reffering to my problem, because I’m very curious.

    Best regards

    • Leonardo Apr 28, 2010 @ 19:25

      I think you’ll find that the INSTALL file is a text file that gives you instructions on how to compile, then install the program from source.
      This install method typically involves:
      >./make install

      If you have the rpm available, use the “ls” command to search the relavant directory and find the *.rpm file. That’s what you’ll want to run the “rpm -i” command with.

      As far as the INSTALL file: instead of trying to execute it, use your favorite editor to view it, or use the cat command:
      > cat ./INSTALL |less

      • xtatuto May 8, 2010 @ 14:27

        Just to add a side note, you don’t use “./” with make and make install, you should only use it with configure, so it would be
        # ./configure
        # make
        # make install

  • peter Jun 17, 2010 @ 23:54

    It’s not a bad idea to run the command:

    # yum check-updates

    This will let you know which packages are due to be updated without actually running the update. Saves a bit of bother if there is a major upgrade about to happen.

  • Feck McConnell Jun 23, 2010 @ 19:12

    So, how do you update an installed yet outdated rpm, when YUM doesn’t find any updates for it?

    • dtolj Apr 13, 2011 @ 21:58

      @Feck McConnel
      You can try issuing 3rd party repositories on RH/CentOS such as EPEL, RPMFusion are two good choices, these might have more recent version of your software but remember that RH/CentOS are more geared for stability rather than bleeding edge. In that case you can try Fedora.

  • Rex Jul 23, 2010 @ 20:42

    Why can’t RedHat make YUM work right? and why can’t they call it something a little more descriptive? Linux is crap! Program names don’t even describe what a program does! How can anything be more non-userfriendly!

    • 🐧 nixCraft Jul 23, 2010 @ 21:05

      Have you tried out yum info command?

      yum info packageName
      yum info httpd
      yum list 
      yum list httpd
      yum list | less
  • ravi Aug 1, 2010 @ 6:31

    how to find all softwares that will install with yum

  • scarluc Aug 24, 2010 @ 20:14

    Hello! I need to install a specific version of packages, for example, if the last version of “seamonkey” is “seamonkey-1.0.9-0.57.el3.i386.rpm” I need to install seamonkey-1.0.9-0.45.el3.i386.rpm, is that possible? obviously I know which is the number of the previous version.
    Excuse me for my english.

    Thanks so much

  • suchi Sep 9, 2010 @ 12:53

    I am using CentOS5.5 and I want to install few packages through yum.

    like gnome-libs,XFree-libs etc. But when I run “yum install gnome-libs” it gives no
    package available.

    Can you suggest me how to update yum to make these package available?


    • dtolj Apr 13, 2011 @ 21:55

      the guide suggests doing this:
      yum whatprovides gnome-libs

      • HFalahati Jun 11, 2011 @ 6:42

        I use this command to install screen on centos
        ” yum whatprovides screen”
        but it shows this error :
        ” Warning: 3.0.x versions of yum would erroneously match against filenames.
        You can use “*/screen” and/or “*bin/screen” to get that behaviour
        No Matches found”
        I use ” yum whatprovides */screen ”
        ” ncurses-5.5-24.20060715.i386 : A terminal handling library
        Repo : Rocks-5.4
        Matched from:
        Filename : /usr/share/terminfo/s/screen”

        and something like this, but when I type “screen”, it says :
        “-bash: screen: command not found”

        I use this command too “yum whatprovides */bin/screen ”
        “Rocks-5.4/filelists | 1.4 MB 00:00
        No Matches found”

        Please help me.
        Thanks in advance.

  • meitham Sep 28, 2010 @ 10:12

    yum is crap, it was modelled after aptitude which is the debian packages manager, apt is way better than yum, and debian is a kickass to redhat.

  • Sam Nov 23, 2010 @ 19:54

    100 Linux servers which are part of production, doesn’t have access to internet. It’s in private DMZ. YUM will not work here. How would you install the latest patches?

  • dtolj Apr 13, 2011 @ 21:53

    Have a look at RHN Proxy Server,
    It allows you to cache rpms internally and distribute them to your local network.

  • leo Apr 26, 2011 @ 23:12

    hi all,

    I have installed centos 5.4, after install i have wired internet connection, but I want to use, my wireless adapter. I go to System>Administration>Networks and have it activited, but it has a message, error in wireless request “set encode” (8B2A). And it can’t determine IP address. Do you think it has to do with the driver of the wireless card? how to install them?
    thank you in advance. I really need your help.. :D


  • Mahesh Apr 28, 2011 @ 6:19

    Hi All,

    How Can i Group Multiple packages in One repo file and when i fire group install command along with yum all the package will be installed.

  • mayank Jun 16, 2011 @ 7:46

    I am using RHEL 5 and I want to install few packages whit yum.

    like vlc media player , real player etc. But when I run “yum install *vlc*nad *realplayer * it gives
    no package available.

  • saeid Aug 1, 2011 @ 20:23

    i’m install netconfig with using of yum : yum install netconfig.
    but i cant use netconfig and i dont find related file.i want to know how to i can use netconfig.
    thank so much and excuse for bad language.

  • senthil Sep 3, 2011 @ 6:12

    i’m install vlc player with using rpm commands but i can’t install vlc because this error has occured so pls help me
    [root@senthil ~]# rpm -ivh /home/senthil/Desktop/gstreamer-ffmpeg-0.10.11-1.fc14.src.rpm
    warning: /home/senthil/Desktop/gstreamer-ffmpeg-0.10.11-1.fc14.src.rpm: Header V3 RSA/SHA256 Signature, key ID 865cc9ea: NOKEY
    1:gstreamer-ffmpeg warning: user mockbuild does not exist – using root
    warning: group mockbuild does not exist – using root
    ########################################### [100%]
    warning: user mockbuild does not exist – using root
    warning: group mockbuild does not exist – using root

    • shimnas May 14, 2013 @ 13:55

      hi frind
      plase login user root.then u try

    • Dan Mar 6, 2015 @ 17:56

      I don’t see any errors, I only see warnings with explanations afterwards of what is happening instead of the default.
      (e.g. the user ‘mockbuild’ not existing, so it’s using root)
      Your (source) RPM has been installed. You might want to install the binary RPM, however. The source RPM is only going to contain the source code, which isn’t going to help you unless you’re compiling it for some custom use.

  • makarim Sep 17, 2011 @ 5:34

    i’am makarim come from indonesia…
    i have installed RHEL 5.7 and Oracle 10.02g (64 bit)
    i will install apache and php5,, can you help me step by step how to install it ?

  • Brandon Dec 5, 2011 @ 14:29

    I have not worked with Red Hat in quite a while I am glad I found this site it gave me a little refresher on update commands. This helped me complete my task that I was working on. Thank You

  • New Dec 24, 2011 @ 17:13

    I want to install some packges using apt-get command. please how to do.


  • surya Jan 24, 2012 @ 11:15


    yum repolist command was working fine till recently. But, all of a sudden it is not working. it is giving an error

    OpenSSL.SSL.Error: [(‘SSL routines’, ‘SSL23_GET_SERVER_HELLO’, ‘unknown protocol’)]

    I am able to ping from the system.

    What may be the problem ? pls. guide.

  • Arvind Jun 17, 2012 @ 0:34

    Hello frinds
    I am having problem with my wifi connection. It is of Broadcom. but Linux Enterprize 5 always give error for dhcp at startup and i have tried a lot to configure my wifi setting manually but i am not successful in doing so. so please help me , i am new to linux and i am self lerner

  • Lakshman Jun 28, 2012 @ 5:56

    I am facing lot of problem in centos I installed 4.8 server but problem is can’t update any package and can’t go forward for GUI mode. Please help me how to do resolve this problem.

  • Soundarrajn Jul 10, 2012 @ 13:04

    Hi guys.

    I’m learning Linux and i have two users in my rhel6 root and redhat users.
    i want to give superuser power to redhat user, how to do it???

    please help me.

  • pravesh Sep 5, 2012 @ 10:20

    Wht if i have more than one yum repo than how could i install a particular package from a particular repo??

  • naushad Sep 12, 2012 @ 12:45

    how to instaall nimbuzz in redhat

  • Anusha Oct 15, 2012 @ 2:31


    Im trying to access a test machine via the portal on a different windows box.
    Its shows error: 502. i guess its related to DNS server settings.. can u help me out..

  • bnvpavan Oct 25, 2012 @ 12:56

    when tried this command yum list extras.Its showing as

    [root@localhost pavan]# yum list extras
    Loading “rhnplugin” plugin
    Loading “installonlyn” plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up repositories [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    Error: Cannot open/read repomd.xml file for repository: dag

    can i know the problem please

  • sowjanya Nov 2, 2012 @ 7:23

    yum install gnuchess
    Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security, subscription-manager,
    : tmprepo, verify, versionlock
    Updating certificate-based repositories.
    Loading support for Red Hat kernel ABI
    Setting up Install Process
    No package gnuchess available.
    Error: Nothing to do

    i am geeting this error working in distro it is showing wat to do

  • sandeep May 6, 2013 @ 13:12


    Please help me on below error in RHEL.

    [root@localhost /]# yum update
    Gathering header information file(s) from server(s)
    Server: Red Hat Linux 4AS – x86_64 – Base
    retrygrab() failed for:
    Executing failover method
    failover: out of servers to try
    Error getting file
    [Errno 4] IOError:

  • shariq Dec 21, 2013 @ 11:12

    I am shariq
    I’m learning Linux and i have two users in my rhel6 root and redhat users.
    i want to give superuser power to redhat user, how to do it???

  • pawan May 29, 2014 @ 7:26

    I am using ‘Amazon Linux AMI release 2014.03’ micro instance. can anyone tell me, why extra packages not install on this machine after epel configured.

  • Raj Nov 10, 2014 @ 18:38

    I need to download php5-cgi rpms for OEL . Where can i get it ?

  • Raghuvanshi Aug 29, 2015 @ 5:23

    please help for below Error:

    Server: Red Hat Linux 14 - i386 - Base retrygrab() failed for:    
     Executing failover method failover: out of servers to try
     Error getting file [Errno 4] IOError: 
  • adhip Sep 29, 2015 @ 19:08

    i want to install packag(numpy) from net..
    but error is showing “no package avalaible”
    what to do?

  • ashutosh Oct 3, 2015 @ 16:20

    how to make a SSL key and SSL certificate for activate rhel7
    buz without this activation i’m not able to configure yum

  • vijay Mar 14, 2016 @ 13:35

    how to install yum packages in redhat Linux 7 for local repository

  • sayedmansoor Jun 16, 2016 @ 19:50

    when I install want to install any package I see this message ” package not available ”
    and ” error : nothing to do ” please help me guys

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Problem posting comment? Email me @