In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the management method of RHEL7 software package". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
# rpm
Purpose: manage rpm packages
Syntax: rpm [options] package name
Mount the CD
[root@localhost ~] # umount / dev/sr0
[root@localhost ~] # mount/dev/sr0 / mnt/
Check the number of packages
[root@localhost ~] # cd/mnt/Packages/
[root@localhostPackages] # ls | wc-l
4621
Take out a bag and state the format of the bag.
Zsh-5.0.2-14.el7.x86_64.rpm
Zsh-5. 0.2-7 x86 64
Software name major version number minor version number revision number RHEL7 CPU architecture platform support system digits
El7: Enterprise Linux 7 RHEL7 or CentOS7
El6
El5
Install rpm softwar
[root@localhost ~] # rpm-ivh / mnt/Packages/lrzsz-0.12.20-36.el7.x86_64.rpm
[root@localhost ~] # rpm--help
-I,-install install package (s)
-v,-- verbose detailed providemore detailed output
-h,-- hash print hash marks aspackage installs (good with-v) # print hash mark # during installation
When installing, resolve dependencies:
[root@localhost] # rpm-ivh / mnt/Packages/mariadb-server-5.5.44-2.el7.x86_64.rpm-- nodeps
Method 1: find the package that starts with perl-DBD-MySQL directly
[root@localhostPackages] # rpm-ivh perl-DBD-MySQL
Method 2: download the package from the website related to the rpm package
Http://rpmfind.net/
Http://rpm.pbone.net/
Http://www.rpmseek.com/index.html
Rpm query function
[root@localhost ~] # rpm-q zsh # query whether a single zsh package is installed
Zsh-5.0.2-14.el7.x86_64
[root@localhost ~] # rpm-qa | grep httpd # query whether httpd-related software packages are installed
[root@localhost ~] # rpm-ql zsh | more
(those files and directories are generated after querying the installation of the zsh software.)
Which package installed the zsh command?
[root@localhost ~] # rpm-qf `which zsh`
Zsh-5.0.2-14.el7.x86_64
Check before the software is installed
[root@localhost ~] # rpm-qpl / mnt/Packages/lrzsz-0.12.20-36.el7.x86_64.rpm
Warning:/mnt/Packages/lrzsz-0.12.20-36.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature,key ID fd431d51: NOKEY
/ usr/bin/rb
/ usr/bin/rx
/ usr/bin/rz
/ usr/bin/sb
/ usr/bin/sx
/ usr/bin/sz
/ usr/share/locale/de/LC_MESSAGES/lrzsz.mo
/ usr/share/man/man1/rz.1.gz
/ usr/share/man/man1/sz.1.gz
Rpm package upgrade:
[root@localhost ~] # rpm-Uvh / mnt/Packages/lrzsz-0.12.20-36.el7.x86_64.rpm
4 uninstall the rpm package:
[root@localhost ~] # rpm-e zsh only writes the name of the software package, not the software package
Forced unloading
[root@localhost] # rpm-e mailcap-force
When you import RPM-GPG-KEY to install the rpm package, verify the signature of the rpm.
[root@localhost ~] # rpm--import/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@localhost ~] # rpm-ivh / mnt/Packages/zsh-5.0.2-14.el7.x86_64.rpm
Preparing... # # [100%]
Package zsh-5.0.2-14.el7.x86_64 isalready installed
The principle of verification is: asymmetric encryption. Import the public key. Verify that the signature in rpm is correct.
This is the end of the content of "what is the management method of RHEL7 software package". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.