YUM Commands for Linux Package Mangement. In this article, we will learn how to install, update, remove, find packages, manage packages and repositories on Linux systems using YUM (Yellowdog Updater Modified) tool developed by Red. Hat. The example commands shown in this article are practically tested on our Cent. OS 6. 3 server, you can use these material for study purpose, certifications or just to explore ways to install new packages and keep your system up- to- date. The basic requirement of this article is, you must have a basic understanding of commands and a working Linux operating system, where you can explore and practice all the commands listed below. Linux Yum Commands. What is YUM? YUM (Yellowdog Updater Modified) is an open source command- line as well as graphical based package management tool for RPM (Red. Hat Package Manager) based Linux systems. It allows users and system administrator to easily install, update, remove or search software packages on a systems. It was developed and released by Seth Vidal under GPL (General Public License) as an open source, means anyone can allowed to download and access the code to fix bugs and develop customized packages. YUM uses numerous third party repositories to install packages automatically by resolving their dependencies issues. In this article, we'll learn how to install, update, remove, find packages, manage packages and repositories on Linux systems using YUM tool developed by RedHat. MS Paint, the first app you used for editing images, will probably be killed off in future updates of Windows 10, replaced by the new app Paint 3D. Microsoft lists. Install a Package with YUMTo install a package called Firefox 1. Firefox.# yum install firefox. Loaded plugins: fastestmirror. Dependencies Resolved. Package Arch Version Repository Size. M. Updating for dependencies. M. Transaction Summary. Install 0 Package(s). Upgrade 2 Package(s). For your security, if you’re on a public computer and have finished using your Red Hat services, please be sure to log out. Log Out.Total download size: 3. M. Is this ok [y/N]: y. Downloading Packages. MB 0. 1: 1. 0. (2/2): xulrunner- 1. MB 0. 0: 5. 2. - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -. Total 6. B/s | 3. 2 MB 0. Dependency Updated. Complete! The above command will ask confirmation before installing any package on your system. If you want to install packages automatically without asking any confirmation, use option - y as shown in below example.# yum - y install firefox. Removing a Package with YUMTo remove a package completely with their all dependencies, just run the following command as shown below.# yum remove firefox. Loaded plugins: fastestmirror. Setting up Remove Process. Resolving Dependencies. Running transaction check. Package firefox. i. Finished Dependency Resolution. Dependencies Resolved. Package Arch Version Repository Size. M. Transaction Summary. Remove 1 Package(s). Reinstall 0 Package(s). Downgrade 0 Package(s). Is this ok [y/N]: y. Downloading Packages. Running rpm_check_debug. Running Transaction Test. Transaction Test Succeeded. K Lite Codec Pack 2013 Full Final Settlement on this page. Running Transaction.Erasing : firefox- 1.Complete! Same way the above command will ask confirmation before removing a package.To disable confirmation prompt just add option - y as shown in below.# yum - y remove firefox.Updating a Package using YUMLet’s say you have outdated version of My.SQL package and you want to update it to the latest stable version. Just run the following command it will automatically resolves all dependencies issues and install them.# yum update mysql. Loaded plugins: fastestmirror. Dependencies Resolved. Package Arch Version Repository Size. Transaction Summary. Install 0 Package(s). Upgrade 1 Package(s). Total size: 1. 44 k. Is this ok [y/N]: y. Downloading Packages. Running rpm_check_debug. Running Transaction Test. Finished Transaction Test. Transaction Test Succeeded. Running Transaction. Updating : vsftpd 1/2. Cleanup : vsftpd 2/2. Complete! 4. List a Package using YUMUse the list function to search for the specific package with name. For example to search for a package called openssh, use the command.# yum list openssh. Loaded plugins: fastestmirror. Loading mirror speeds from cached hostfile. Installed Packages. Available Packages 4. To make your search more accurate, define package name with their version, in case you know. For example to search for a specific version openssh- 4. Search for a Package using YUMIf you don’t remember the exact name of the package, then use search function to search all the available packages to match the name of the package you specified. For example, to search all the packages that matches the word .# yum search vsftpd. Loaded plugins: fastestmirror. Loading mirror speeds from cached hostfile. Matched: vsftpd ========================. A robust log colorizer. SELinux support for Pure- FTPD. Very Secure Ftp Daemon. Get Information of a Package using YUMSay you would like to know information of a package before installing it. To get information of a package just issue the below command.# yum info firefox. Loaded plugins: fastestmirror. Loading mirror speeds from cached hostfile. Available Packages. Name : firefox. Arch : i. 38. 6. Version : 1. 0. 0. Release : 1. el. Size : 2. 0 M. Repo : updates. Summary : Mozilla Firefox Web browser. URL : http: //www. License : MPLv. 1. GPLv. 2+ or LGPLv. Description: Mozilla Firefox is an open- source web browser, designed for standards. List all Available Packages using YUMTo list all the available packages in the Yum database, use the below command.# yum list | less. List all Installed Packages using YUMTo list all the installed packages on a system, just issue below command, it will display all the installed packages.# yum list installed | less. Yum Provides Function. Yum provides function is used to find which package a specific file belongs to. For example, if you would like to know the name of the package that has the /etc/httpd/conf/httpd. Loaded plugins: fastestmirror. Apache HTTP Server. Repo : base. Filename : /etc/httpd/conf/httpd. Apache HTTP Server. Repo : updates. Filename : /etc/httpd/conf/httpd. Apache HTTP Server. Repo : updates. Filename : /etc/httpd/conf/httpd. Apache HTTP Server. Repo : installed. Other : Provides- match: /etc/httpd/conf/httpd. Check for Available Updates using Yum. To find how many of installed packages on your system have updates available, to check use the following command.# yum check- update. Update System using Yum. To keep your system up- to- date with all security and binary package updates, run the following command. It will install all latest patches and security updates to your system.# yum update. List all available Group Packages. In Linux, number of packages are bundled to particular group. Instead of installing individual packages with yum, you can install particular group that will install all the related packages that belongs to the group. For example to list all the available groups, just issue following command.# yum grouplist. Installed Groups. Administration Tools. DNS Name Server. Dialup Networking Support. Engineering and Scientific. Java Development. Legacy Network Server. Available Groups. Authoring and Publishing. Cluster Storage. Development Libraries. How To Crack Reasoning In Ibps Po 2016 here. Development Tools. Educational Software. KDE (K Desktop Environment). KDE Software Development. Install a Group Packages. To install a particular package group, we use option as groupinstall. Fore example, to install “My. SQL Database“, just execute the below command.# yum groupinstall 'My. SQL Database'. Dependencies Resolved. Package Arch Version Repository Size. ODBC i. Installing for dependencies. ODBC- libs i. Transaction Summary. Install 1 Package(s). Upgrade 1 Package(s). Total size: 8. 41 k. Is this ok [y/N]: y. Downloading Packages. Running rpm_check_debug. Running Transaction Test. Finished Transaction Test. Transaction Test Succeeded. Running Transaction. Installing : unix. ODBC- libs 1/3. Updating : unix. ODBC 2/3. Cleanup : unix. ODBC 3/3. Dependency Installed. ODBC- libs. i. 38. ODBC. i. 38. 6 0: 2. Complete! 1. 4. Update a Group Packages. To update any existing installed group packages, just run the following command as shown below.# yum groupupdate 'DNS Name Server'. Dependencies Resolved. Package Arch Version Repository Size. P1. el. 5_8. 2 updates 9. P1. el. 5_8. 2 updates 4. Updating for dependencies. P1. el. 5_8. 2 updates 8. P1. el. 5_8. 2 updates 1. Transaction Summary. Install 0 Package(s). Upgrade 4 Package(s). Total size: 2. 0 M. Is this ok [y/N]: y. Downloading Packages. Running rpm_check_debug.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |