How do I use yum command under RHEL 5 to install and update packages?
The yum command can be run by hand from the shell prompt, called through one of the provided front-end tools, or configured to run automatically at specified intervals.
Update All Installed Packages
The following command displays a list of packages that need to be updated:
# yum check-update
And to install these updates, enter:
# yum update
Package Listing
To ist all available packages, run:
# yum list available
# yum list available "package-name"
To list all installed packages, run:
# yum list installed
Package Installation
To install the specified RPM or packages via RHN, enter:
# yum install packageName
# yum install httpd
Package Deletion
To remove the specified RPM(s) and it's dependents, enter:
# yum remove packageName
# yum remove httpd
Recommend readings:
- RHEL yum commands list : Update / Install Packages under Fedora / Redhat Enterprise / CentOS Linux Version 5.x.
- CentOS / RHEL Configure Yum Automatic Update Retrieval and Installation
- RHEL / Red hat / CentOS / Fedora Send Yum Package Update Notification Via Email
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop






![RHEL / CentOS Yum Command: Blacklist Packages [ Disable Certain Packages ]](http://s13.cyberciti.org/images/shared/rp/3/28.jpg)







{ 0 comments… add one now }