Featured

Linux Package Management | Linux YUM, DNF, RPM | Rollback Patches



Published
#linux #mprashant #linuxtutorial #linuxtutorialforbeginners #linuxtraining @MPrashant

In this video, I'll be covering Linux package management using the popular tools yum, rpm, and dnf. I'll also be discussing how to create and use rollback patches.

Package management on Linux is a essential part of system administration, and this video will give you a solid understanding of the different tools available and how to use them effectively. By the end of the video, you'll be able to manage your Linux packages using the most popular package management tools!

00:00 Intro
01:10 What is Linux Package Management?
02:22 How to use Yum in Linux?
07:55 What is difference between Upgrade & Update?
10:00 Rollback Updates using Yum history undo
12:20 Linux RPM Command
14:18 How to install .rpm file using rpm command
18:15 How to use DNF in Linux?
21:15 How to use APT command in Linux?


-------------------------------------------------------------
Linux Tutorial for beginners in Hindi
Linux Tutorial in Hindi
Linux Course in Hindi
What is Linux Package Management in Linux in Hindi?
yum update
Linux yum tutorial
Yum linux Tutorial
How to use Yum command for beginners
Linux yum

--------------------------------------------------------------------

Learn to manage software using YUM/DNF and RPM for your Red Hat-based Linux systems.

Package management is a method of installing, updating, removing, and keeping track of software updates from specific repositories (repos) in the Linux system.

Yellow Dog Updater, Modified (YUM)
DNF or Dandified YUM is the updated default since Red Hat Enterprise Linux 8, CentOS 8, Fedora 22, and any distros based on these.
YUM is the primary package management tool for redhat.
YUM performs dependency resolution when installing, updating, and removing software packages.
YUM can manage packages from installed repositories in the system or from .rpm packages.

you can see all the options using
#yum -option

To see the past work done related to packages, which will show you the activity with date and time
#yum history

We can simply undo or redo any action using
#yum history undo/redo d

How to install and remove a package
yum install ksh -y
yum remove ksh


RPM (RPM Package Manager)
RPM is a popular package management tool redhat based distros
Using RPM, you can install, uninstall, and query individual software packages.
Issue: It cannot manage dependency resolution like YUM.
RPM maintains a database of installed packages, which enables powerful and fast queries.
Some commonly used modes

RPM
-i install
-U upgrade
-e erase
-V verify
-q query

Example:
To install or upgrade an .rpm package using RPM, issue this command:
You need to first download .rpm package

rpm -i package-file
rpm -U package-file

rpm -ivh package-file (v-verbose, h for hash to show progress)
rpm -evh package-file

================================
To query all the installed packages
rpm -qa

================================
More info about the package
rpm -qi package_name

================================
Info about config files for a package
rpm -qc package_name

Example for the rpm download and install
Go to google, type ksh for linux download
https://centos.pkgs.org/8/centos-appstream-x86_64/ksh-20120801-254.el8.x86_64.rpm.html

Then under download, get the link for binary package and download in Linux using wget
then rpm -ihv ksh....rpm will install



-----------------------------------------------------------------
For Ubuntu
We can use apt
apt-get is for older version but we can directly use apt
sudo we need to use only for other user not for root

apt install package_name
apt remove package_name
apt autoremove (to remove the dependencies)
apt update (to update the repo)
apt-cache search apache

apt install apache2


sudo dnf list available
sudo dnf update/upgrade
sudo dnf install package.name
sudo dnf info package.name
sudo dnf list installed
sudo dnf remove package.name
sudo dnf search package
Category
Management
Be the first to comment