Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

NOTE: CentOS Enterprise Linux is built from the Red Hat Enterprise Linux source code. Other than logo and name changes CentOS Enterprise Linux is compatible with the equivalent Red Hat version. This document applies equally to both Red Hat and CentOS Enterprise Linux.

14.11. Error Messages During Installation of RPMs

How do I install an RPM from a CD or the Internet? I keep getting an error message when I use RPM.

If you are getting an error message similar to failed to open /var/lib/rpm/packages.rpm, it is because you do not have proper permission to install RPM files.

When you install software, you are often required to make system-wide changes which only root can make, such as creating new directories outside of your home directory or making changes to your system configuration. If you are using your normal user account, you do not have permission to make such changes by default.

You need to be the root user to install RPM files. At a shell prompt, switch to the root user by running the following command:

       su - 
    

After entering the root password when prompted, you should then be able to install the RPM file without further errors. For more information about using RPM and Package Management Tool, refer to the Red Hat Enterprise Linux System Administration Guide on the Red Hat Enterprise Linux Documentation CD or online at https://www.redhat.com/docs/.

 
 
  Published under the terms of the GNU General Public License Design by Interspire