![]() ![]() Loading mirror speeds from cached hostfile I just tried this update command with Perl on my Linux system (which I knew probably needed to be updated), and here's the output from the previous command: yum update perl To update a package that is already installed, use the yum update command: yum update perl To get rid of a particular error during a recent install I had to install the libxml2 package, and did so like this: yum install libxml2 For instance, to install the gcc development environment, use this command: yum install gcc To install a new package on a Linux system using yum, use the yum install command. If you don't know the exact name of a package, you can search for it like this: yum search mysql That command yields this output: Installed Packages That example yum command yields this output: Installed Packagesīy adding a wildcard to the end of that command I can get a list of all "mysql*" packages that are installed: yum list mysql* On my test server this command: yum list mysql To see if a particular package is installed the yum list command is still good. See if an individual yum package is installed ![]() To list all installed packages use the yum list installed command: yum list installed Or this: yum list all | grep -v installed | more That should be a long list, so you'll probably want to pipe that into more or grep, like this: yum list all | more To list all packages that are available to you using the yum command, use the yum list command: yum list all See if an individual package is installed.Here's a list of shortcut links to the example yum commands shown on this page: ![]() I've organized the yum commands below by task (i.e., list, install, update, information, remove). I've been working with the CentOS Linux yum command a lot lately, so I thought I'd create a yum reference page with a lot of examples while it's still fresh in my mind. Summary: A CentOS Linux yum command cheat sheet (reference page). ![]()
0 Comments
Leave a Reply. |