Linux_ software installation

It should be noted here that yum is not a software installation method different from rpm. Using the yum command is also the software installation method using rpm in the process of installing software.

yum

The most important function of the upper-level software management tool is to solve the software dependency relationship
. The premise that yum can be put into use is that there must be a yum source, as well as the pointing file of the configuration source


###server source ###
1. From the network up and down The iso image file matching the local system version

rhel-server-7.3-x86_64-dvd.iso

See here that my system is 7.3 so use the 7.3 mirror



2. Mount rhel-server-7.3-x86_64-dvd.iso to /mnt to access the files in the mirror
mount rhel-server-7.3-x86_64-dvd.iso /mnt


3. Configure the local yum source to point to
rm -fr /etc/yum.repos.d/*
vim /etc/yum.repos.d/yum.repo
[Server]
name=rhel7.3
baseurl=file:///mnt
gpgcheck=0


4. Install the resource sharing service
yum install httpd -y
systemctl stop firewalld  
systemctl disable firewalld 
systemctl start httpd 
systemctl enable httpd 


5. Create a shared directory and attach the mirror file to the shared directory
mkdir /var/www/html/rhel7.3
umount /mnt

mount rhel-server-7.3-x86_64-dvd.iso /var/www/html/rhel7.3


6. Test Enter
in the browser: http://local ip/rhel7.3
to see the content in the mirror


7. Modify the local yum source to point to
[server]
name=rhel7.3
baseurl=file:/// var/www/html/rhel7.3
gpgcheck=0
##############yum command##################
yum install softwarename ## Install
repolist ##List setting yum source information
remove softwarename ##Uninstall
list softwarename ##Check if there is secondary software in the software source
list all ##List all software names
list installd ##List installed software names
list available ##List software names that can be installed with yum
clean all ##Empty yum cache
search softwareinfo ##Search software names based on software information
whatprovides filename ##Find the package containing the filename file in the yum source update ##Update software history ##View system software change history reinstall softwarename ##Reinstall info softwarename ##View software information groups list ##View software group information groups info softwaregroup ##View the software included in the software group groups install softwaregroup ##Install components groups remove softwaregroup ##Uninstall components ####Software installation#### ####1. Software name identification#### [abrt -addon-ccpp]-[2.1.11-19].[el7].[x86_64].rpm ##The end of rpm is applicable to the redhat operating system        ||     || || ||     Software name
















  Software version The software is applicable to the system 64-bit

####2. How to install the software####
1.rpm
rpm -ivh name.rpm ##Installation, -v shows the process, -h specifies the encryption method as hash
-e name ## Uninstall
-ql name ##Query the software generated files
-qlp name.rpm ##Query what files will be generated after the software is installed-
qa ##Query the names of all software installed in the system-
qa |grep name ##Query whether the software is installed
-q name ##. . . .
-qp name.rpm ##Query the name of the software installation package after installation
-qf filename ##Check which installation package the filename belongs to
-ivh name.rpm --force ##Force installation, but cannot ignore dependencies
-ivh name.rpm - -nodeps --force ##Ignore dependencies and force installation
-qi name ##View software information
-Kv name.rpm ##Detect if the package has been tampered with

-qp name.rpm --scripts ##Detect the actions performed by the software during installation or uninstallation

install wps

Because the problem of dependencies has been solved before, it can be installed directly  

Here are the specific implementations of some other commands


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326023844&siteId=291194637