Search Results for: yum

DNF, YUM and RPM package manager comparison

Introduction We have been using the yum or rpm package management tools for a while for managing packages in Redhat, Centos and other distributions which have been forked from RHEL. Yum has been the default package manager since Redhat Enterprise Linux 5 onwards. Before yum, RHEL systems had been using the up2date software management program. The DNF package manager was introduced in Fedora 18 and became the default package manager for the Fedora distribution for operating system version Fedora 22 onwards and is intended to be a replacement for yum. In this article, we will compare these package managers to provide some perspective as to when and why you should consider using one over the other.   Sno                    DNF               YUM                                     RPM 1 Written in C and Python Written in python Written in C and Perl 2 DNFs uses libsolv for dependency resolution which was created and maintained by SUSE YUM uses public API for dependency resolution RPM does not provide dependency resolution 3 Dependency resolution is fast and easy making installation of groups of packages very simple Dependency resolution is slower as compared to dnf but is still fairly straightforward Due to lack of dependency...

Read More

28 yum command examples for package management in Linux part 2

In our previous article on the Linux yum command, we covered how we could use the yum package manager to search for packages, install them, query information about packages, check for security updates and update the system to have the latest versions of packages installed. In this article, we’ll show how to use yum to update/downgrade a single package, remove packages and a few other tips and tricks. Update single package using YUM Example 15: We could use yum to update a single or multiple packages instead of installing updates available for every package installed on the system. We accomplish this by using the yum update command followed by the package name. Given below is an example. [root@linuxnix ~]# yum update nfs-utils Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Loading mirror speeds from cached hostfile * base: centos.mirror.snu.edu.in * epel: ftp.riken.jp * extras: centos.mirror.snu.edu.in * updates: centos.mirror.snu.edu.in Resolving Dependencies --> Running transaction check ---> Package nfs-utils.x86_64 1:1.2.3-70.el6 will be updated ---> Package nfs-utils.x86_64 1:1.2.3-75.el6_9 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================ Package Arch Version Repository Size ============================================================ Updating: nfs-utils x86_64 1:1.2.3-75.el6_9 updates 336 k Transaction Summary ============================================================ Upgrade 1 Package(s) Total size: 336 k Is this ok [y/N]: Remove a package using yum Example 16: In order to remove a package from the system via yum, we use the yum remove command followed...

Read More

28 yum command examples for package management in Linux part 1

Introduction For managing software via the command line on our Redhat and Centos systems, we could use rpm directly or use yum which is somewhat of a feature rich front end for rpm. We covered the Linux rpm command and it’s features extensively in an earlier article. Yum is an acronym for yollowdog updater modified. The name yellowdog comes from a distribution of Linux which was focussed on IBMs’ power line of systems in the early 2000s. The yum package manager is an earlier implementation of yep, the package manager used by yellowdog Linux. Yum sitting on top of rpm is the default package management interface for Redhat and Centos systems and older versions of Fedora. After Fedora 22 onwards, yum was switched in favor of dnf and we will cover dnf in a future post. The major advantage of using yum over rpm is that yum manages dependencies for packages automatically. So if a package requires python or ruby or any other package then yum will go out and fetch and install these packages and any other dependencies which are needed by the package that we are trying to install. If you are trying to install a package that has dependencies via rpm, then you need to be aware of those dependencies and have the rpm package files for those dependencies available and installed on the system. We...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.