Note: There is no separate yum service that runs on your system. Install a package: yum install package-name Install a package without being asked for permission before installation process: yum -y install package-name Remove a package: yum remove package-name Remove a package without being asked for permission before removing process: yum -y remove package-name Remove orphan packages: package-cleanup -quiet -leaves -exclude-bin | xargs yum remove -y Check if a package has an update available: yum check-update package-name Update a package: yum update package-name See if any update is available: yum check-update Update everything: yum update Automatic updates su -c '/sbin/chkconfig -level 345 yum on /sbin/service yum start' See installed packages: yum list installed Search for an installed package: yum list installed | grep php See available packages: yum list available Search for available packages: yum list available | grep php See information of a package: yum info php Name : php Arch : x86_64 Version : 5.3.3 Release : 27.el6_5 Size : 3.5 M Repo : installed. As I’m more used to apt-get I've searched a fairly complete list of tasks I'll need in the future. software in your CentOS/Fedora/Red Hat box. Those are some commands that you’ll probably need sometime to install, remove, update, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |