(B15) Linux Admin part9 Package Management -rpm and yum

preview_player
Показать описание
20220323 130720
Package Management

-install
-update
-uninstall/remove

*otherway -- makeinstall, .sh, ..

rpm and yum

rpm
RPM Package Manager (also known as RPM), originally called
the Red-hat Package Manager, is an open source program for
installing, uninstalling, and managing software packages in
Linux. RPM was developed on the basis of the Linux Standard Base (LSB)

32bit -x86,i586/i386,x32
64bit -x86_64, amd64,x64
arm - arm

el6 - rhel 6,centos 6,
el7 - rhel 7 ,centos 7

noarch -- no arch -no 32bit/64bit - any where

src - source code
bin - binary
----------------------

rpm package management

rpm -ivh package.*.rpm

-i - install
-q - query
-U - Update
-e - remove/erase
-v - verbose
-h - hash

QUERYING AND VERIFYING PACKAGES:
rpm {-q|--query} [select-options] [query-options]

rpm {-V|--verify} [select-options] [verify-options]

INSTALLING, UPGRADING, AND REMOVING PACKAGES:
rpm {-i|--install} [install-options] PACKAGE_FILE ...

rpm {-U|--upgrade} [install-options] PACKAGE_FILE ...

rpm {-F|--freshen} [install-options] PACKAGE_FILE ...

rpm {-e|--erase} [--allmatches] [--justdb] [--nodeps]
[--noscripts]
[--notriggers] [--test] PACKAGE_NAME ...
---------------------------------------------------
run/media/root/CentOS 7 x86_64/Packages

------------------------------------------------------
**
rpm cant resolve dependancy

Dependancy
- to install any package , it may required to install pre-requist package installation

package
-p11
--p33
---p3 p4 p5
--------------------------------------
yum - Yellowdog Updater, Modified

yum install package.*.rpm

yum install servicename

install - install
info -information
update -update package or entire system
remove -remove/uninstall pacakge

easy to resolve dependancy by using repositories

location of repo files

name=example
file=//packagelocation
baseurl:
enabled=1

-----------
yum clean all
yum repolist

yum info httpd
yum install mariadb

yum info mariadb

yum update mariadb

yum remove mariadb

yum info mariadb
----------------

ubuntu -apt-get
debain -deb
-----------------
--install groupwise

yum groupinfo groupname

ex. 'Development Tools'

yum groupinstall 'groupname'
-----------------------------
Рекомендации по теме