Wednesday, July 13, 2016

Top Yum command examples - linux tuorials

What is yum in Linux?

Yum abbreviates as Yellowdog Updater Modified a free tool for managing packages in RedHat Unix as well as CentOS. yum is a popular packaging tool to manage the different packages in Linux. Yum, do install, update, remove the packages or rpm's in red hat and Cent OS Unix yum is a similar apt-get tool in ubuntu operating system. yum install the dependencies automatically yum download the temporary files and store under /var/cache/yum folder, Once the yum operation is finished, the data will be deleted. We will see the different yum examples in the following article


yum install command in Linux - how to install package or rpm in Unix

with yum install command, We can install package or rpm in Linux. We can also specify the multiple package names with separate space
yum install package-name
yum install package-name1 package-name2

yum uninstall command in Linux - how to uninstall package or rpm

With yum remove command, it removes the packages from the system. We can also specify the multiple packages in command
yum remove package-name
yum remove package-name1 package-name2

yum list command in Linux - show list of installed packages

yum list all - show list of all packages
yum list package-name - show list of all packages for package
yum list package* - show list of packaes that name starts with package


yum update command in Linux - update package with the latest version

with yum update command, It updates all the packages with the latest version if we need, we can update a specific package
yum update
or 
yum update package-name

yum update command in Linux - update package with the latest version

yum clean command in Linux - remove cache

Yum automatically clean the cache. use yum clean command to clear the cache manually, yum clean all finally yum help command Use
man yum
That about yum. If you like my article please share on social media.

Related article