Update / Install Packages Under Redhat Enterprise / Cent. OS Linux Version 5. How do I use yum command to update and patch my Red hat Enterprise Linux / Cent. OS Linux version 5. RHN / Internet? Can I use up. RHEL 5? up. 2date command was part of RHEL v. You need to use yum command to update and patch the system using RHN or Internet. Yum (Yellow dog Updater Modified) is a package manager for RPM compatible Linux systems such as CentOS, Fedora core and latest Redhat Enterprise Linux. In Linux you can install packages through many ways like. 1. Through RPM, 2. Through shell script 3. Through source tar balls etc. YUM(Yellow-dog Updater and Modifier. This entry was posted in Redhat / Linux Tips and Tricks and tagged build local repository, build redhat local repository, HowTo Install redhat package with YUM. Install Software Packages via YUM command using CentOS 6/5 Installation DVD/CD. by Ravi Saive | Published: December 6, 2012 | Last Updated: December 6, 2012. By default, RHEL/CentOS 7 server installed as minimal without any Graphical Desktop support. This article shows how to install Gnome 3 Desktop in RHEL/CentOS 7. Installing RPM's using the Redhat Package Manager Redhat RPM's offer a flexable and easy method to install new software. Software installed from an RPM package. The Advanced Package Tool, or APT, is a free software user interface that works with core libraries to handle the installation and removal of software on the Debian. 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. Task: Register my system with RHNTo register your system with RHN type the following command and just follow on screen instructions (Cent. OS user skip to next step): # rhn_register. WARNING! These examples only works with RHEL / Cent. OS Linux version 5. For RHEL 4. x and older version use up. Task: Display list of updated software (security fix)Type the following command at shell prompt: # yum list updates. Task: Patch up system by applying all updates. To download and install all updates type the following command: # yum update Task: List all installed packages. List all installed packages, enter: # rpm - qa# yum list installed Find out if httpd package installed or not, enter: # rpm - qa | grep httpd*# yum list installed httpd. Task: Check for and update specified packages# yum update {package- name- 1}To check for and update httpd package, enter: # yum update httpd. Task: Search for packages by name. Search httpd and all matching perl packages, enter: # yum list {package- name}# yum list {regex}# yum list httpd# yum list perl*Sample output: Loading "installonlyn" plugin. Loading "security" plugin. Setting up repositories. Reading repository metadata in from local files. Installed Packages. Archive- Tar. noarch 1. BSD- Resource. i. Compress- Zlib. i. DBD- My. SQL. i. 38. DBI. i. 38. 6 1. Digest- HMAC. noarch 1. Digest- SHA1. i. 38. HTML- Parser. i. 38. Task: Install the specified packages [ RPM(s) ]Install package called httpd: # yum install {package- name- 1} {package- name- 2}# yum install httpd. Task: Remove / Uninstall the specified packages [ RPM(s) ]Remove package called httpd, enter: # yum remove {package- name- 1} {package- name- 2}# yum remove httpd. Task: Display the list of available packages# yum list all. Task: Display list of group software. Type the following command: # yum grouplist. Output: Installed Groups. Engineering and Scientific. My. SQL Database. System Tools. Text- based Internet. Legacy Network Server. DNS Name Server. Dialup Networking Support. Network Servers. Legacy Software Development. Legacy Software Support. Development Libraries. Printing Support. Server Configuration Tools. Postgre. SQL Database. Available Groups. Office/Productivity. Administration Tools. Development Tools. GNOME Software Development. X Software Development. Virtualization. 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. Free. NX and NX. Yum Utilities. Graphical Internet. Task: Install all the default packages by group. Install all ‘Development Tools’ group packages, enter: # yum groupinstall "Development Tools"Task: Update all the default packages by group. Update all ‘Development Tools’ group packages, enter: # yum groupupdate "Development Tools"Task: Remove all packages in a group. Remove all ‘Development Tools’ group packages, enter: # yum groupremove "Development Tools"Task: Install particular architecture package. If you are using 6. RHEL version it is possible to install 3. Task: Display packages not installed via official RHN subscribed repos. Show all packages not available via subscribed channels or repositories i. Sample output: Loading "installonlyn" plugin. Loading "security" plugin. Setting up repositories. Reading repository metadata in from local files. Deny. Hosts. noarch 2. VMware. Tools. i. Task: 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. Sample output: Loading "installonlyn" plugin. Loading "security" plugin. Setting up repositories. Reading repository metadata in from local files. You can use same command to list packages that satisfy dependencies: # yum whatprovides {dependency- 1} {dependency- 2}Refer yum command man page for more information: # man yum.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2016
Categories |