Professional Documents
Culture Documents
RPM Management Notes
RPM Management Notes
=========================================================
Machine <=== Using ISO image Installation
=========================================================
How we can find out the report about available rpms and
respective command in my machine ?
=========================================================
==================================================
How we can install any packages using local ISO image ?
step-1 connect ISO image with your VM and copy rpms folders into your machine in
any directory.
116 ls /
117 lsblk
118 ls /run/media/root/RHEL-9-0-0-BaseOS-x86_64
119 mkdir /redhatisodata
120 cd /run/media/root/RHEL-9-0-0-BaseOS-x86_64
121 ls
122 cp -rf * /redhatisodata
123 cd
124 ls /redhatisodata
125 ls /redhatisodata/AppStream
126 ls /redhatisodata/BaseOS
127 ls /redhatisodata/BaseOS/Packages/
128 ls /redhatisodata/BaseOS/Packages | wc -l
129 ls /redhatisodata/AppStream/Packages | wc -l
130 expr 5272 + 1131
131 rpm -qa | wc -l
132 expr 6403 - 1170
133 ls /redhatisodata/BaseOS/Packages
134 ls /redhatisodata/AppStream/Packages
135 ls /
136 history
137 ls /bin | wc -l
138 ls /sbin | wc -l
139 expr 1491 + 534
140 lsblk
141 eject /run/media/root/RHEL-9-0-0-BaseOS-x86_64
142 lsblk
==================================================
143 history
144 rpm -qa | wc -l
145 ls /bin | wc -l
146 ls /sbin | wc -l
147 rpm -e tree
148 which tree
149 rpm -qa tree
150 rpm -qa | wc -l
151 ls /bin | wc -l
152 rpm -e vim-enhanced
153 ls /bin | wc -l
154 vim xyz
155 vi xyz
156 rpm -e tar
157 rpm -e tar --nodeps
158 rpm -qa tree
159 rpm -qa tar
160 rpm -qa vim-enahaced
161 rpm -e gunzip2
162 rpm -qa vsftpd
163 rpm -qa ftp
164 history
[root@localhost ~]#
==================================================
Querry + Erase
~ ] #
===================================================
installation + update ==> using rpm command
1- Exact Location
2- complete name need to mention
===================================================
=======================================================
How we can install any package with step by step depandancies resolution ?
Examples: targetcli
1 ls /redhatisodata
2 find /redhatisodata -name "targetcli*"
3 rpm -ivh /redhatisodata/AppStream/Packages/targetcli-2.1.53-
7.el9.noarch.rpm
4 find /redhatisodata -name "python3-configshell*"
5 rpm -ivh /redhatisodata/BaseOS/Packages/python3-configshell-1.1.28-
7.el9.noarch.rpm
6 find /redhatisodata -name "python3-pyparsing*"
7 find /redhatisodata -name "python3-urwid*"
9 rpm -ivh /redhatisodata/BaseOS/Packages/python3-pyparsing-2.4.7-
9.el9.noarch.rpm
10 rpm -ivh /redhatisodata/BaseOS/Packages/python3-urwid-2.1.2-
4.el9.x86_64.rpm
11 rpm -ivh /redhatisodata/BaseOS/Packages/python3-configshell-1.1.28-
7.el9.noarch.rpm
12 find /redhatisodata -name "python3-rtslib*"
13 rpm -ivh /redhatisodata/AppStream/Packages/python3-rtslib-2.1.74-
7.el9.noarch.rpm
14 find /redhatisodata -name "python3-kmod*"
15 find /redhatisodata -name "python3-pyudev8"
16 find /redhatisodata -name "python3-pyudev*"
17 rpm -ivh /redhatisodata/BaseOS/Packages/python3-kmod-0.9-32.el9.x86_64.rpm
18 rpm -ivh /redhatisodata/BaseOS/Packages/python3-pyudev-0.22.0-
6.el9.noarch.rpm
19 rpm -ivh /redhatisodata/AppStream/Packages/python3-rtslib-2.1.74-
7.el9.noarch.rpm
20 find /redhatisodata -name "target-restore*"
21 rpm -ivh /redhatisodata/AppStream/Packages/target-restore-2.1.74-
7.el9.noarch.rpm
22 rpm -ivh /redhatisodata/AppStream/Packages/targetcli-2.1.53-
7.el9.noarch.rpm
23 rpm -qpR /redhatisodata/AppStream/Packages/targetcli-2.1.53-
7.el9.noarch.rpm
24 rpm -qa targetcli
25 rpm -qR targetcli
26 rpm -qa vsftpd
27 rpm -ql vsftpd
28 systemctl start vsftpd
29 systemctl enable vsftpd
30 systemctl is-active vsftpd
31 systemctl is-enabled vsftpd
32 ls /etc/yum.repos.d
34 rpm -qa vsftpd
35 find /redhatisodata -name "vsftpd*"
36 rpm -Uvh /redhatisodata/AppStream/Packages/vsftpd-3.0.3-49.el9.x86_64.rpm
37 rpm -Uvh /redhatisodata/AppStream/Packages/vsftpd-3.0.3-49.el9.x86_64.rpm
--force
38 history
=======================================================
=======================================================