
Using the "-i" flag indicates you are attempting an install of one or more packages. Check out the man pages for a list of all the available options. The command expects to be supplied with flags to indicate the mode of operation and one or more package files. The rpm command is used to install, update, list and remove software packages.
Linux : Installing Software Packages (RPM, YUM and DNF). Remember, the exams are hands-on, so it doesn't matter which method you use to achieve the result, so long as the end product is correct. This article provides an overview of the rpm and yum commands for installing software packages on Linux, with specific reference to the information needed for the RHCSA EX200 and RHCE EX300 certification exams. Note that you likely also want to use -y.Home » Articles » Linux » Here Installing Software Packages (rpm, yum)
-assumeno Assume that the answer to any question which would be asked is no. -y Assume that the answer to any question which would be asked is yes. $ sudo yum clean packages General Options $ sudo yum clean all Delete packages saved in cache: $ sudo yum history redo Clean Clear out cached package data: $ sudo yum history undo Redo the undone yum action from transaction ID: $ sudo yum history info Undo the yum action from transaction ID: $ yum repolist all Get information about repositories: RHEL/CentOS 7 $ yum repolist Display all enabled/disabled repositories: Remove a section to the /etc/yum.conf file, or to a. Set enabled=1 to enable or enabled=0 to disable the repository.Īdd a section to the /etc/yum.conf file, or to a. repo file in /etc// or it's related section in /etc/yum.conf. $ sudo yum repo-pkgs upgrade Repositories Enable/Disable a repository: Update a package from a specific repository: RHEL/CentOS 7 Update to desired version: $ sudo yum update-to. Query available versions of package: $ yum -showduplicates list.
$ sudo yum groupupdate Update an individual package to an specific version: $ sudo yum update Update all packages in a group: $ sudo yum update -security Update an individual package: $ sudo yum update Apply only security related updates: $ sudo yum check-update Update the whole packages to the latest version: Check the whole system for available updates: Yum is able to Update the whole system, an individual package or even downgrade the package to an earlier version.