Synchronization and installation of third-party software sources

Download the software installation package from the host

 

 

Download to /mnt/software/     directory to change

 

[root@localhost software]#lftp 172.25.254.250  

##### means to download from the host           whose ip is 172.25.254.250

#####lftp is a file client program that supports multiple file transfer protocols such as ftp , setp, http, and ftps , supports automatic tab completion, and can also be viewed by double-clicking the tab

lftp 172.25.254.250:~> cd pub/software/

########## Enter the directory where the file to be downloaded is located

lftp 172.25.254.250:/pub/software> mget FluffyMcAwesome-*

####### Download all FluffyMcAwesomes to allow resuming after power failure

59640 bytes transferred

Total 2 files transferred

lftp 172.25.254.250:/pub/software> get linuxqq-v1.0.2-beta1.i386.rpm 

5046743 bytes transferred                                          

lftp 172.25.254.250:/pub/software> cd tools/

lftp 172.25.254.250:/pub/software/tools> get wps-office-10.1.0.5672-1.a21.x86_64.rpm

82209506 bytes transferred                                        

lftp 172.25.254.250:/pub/software/tools> quit

############ The download is complete and exit the connection with the quit command


[root@localhost software]# ls

###### View Downloads



    

FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm

FluffyMcAwesome-B-6.4.0-11.r19335.x86_64.rpm

linuxqq-v1.0.2-beta1.i386.rpm

wps-office-10.1.0.5672-1.a21.x86_64.rpm

 

 

 

 

 

   install software

1 .rpm

  rpm -ivh name.rpm ### Install the software, -v shows the installation process, -h specifies the encryption method as hash

           -e name ### Uninstall software

           -ql name ### Query software generated files


           -qc name ### Query the software configuration file name

           -qd name ### Query software description file name

           -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 "rough query"


           -q name #### Query whether the software is installed "must be exact software name"


          -qp name.rpm #### Query the name of the installation package after installation

          -qf filename ### View which installation package filename belongs to

          -ivh name.rpm --force ### Force installation, but not ignoring dependencies

          -ivh name.rpm --nodeps --force ### Ignore dependencies and force install

          -qi name #### View software information


          -Kv name.rpm #### Detect if the package has been tampered with

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

 

 

Detect whether the software package has been tampered with before installing the software package, and the actions performed during the installation and uninstallation process prevent the installation of illegal software from damaging the system

 

[root@localhost software]# rpm -ivh wps-office-10.1.0.5672-1.a21.x86_64.rpm

error: Failed dependencies:

libpng12.so.0()(64bit) is needed by wps-office-10.1.0.5672-1.a21.x86_64

libGLU.so.1()(64bit) is needed by wps-office-10.1.0.5672-1.a21.x86_64

 

### Installation prompts that there is no required environment

The environment must be installed first, pay attention to distinguish between 32 -bit and 64 -bit

================================================================

 Package                  Arch       Version              Repository       Size

================================================================

Installing:

 libpng12                 i686       1.2.50-6.el7         source7.0       181

Red is 64 -bit (the real color is black)

 

Share the local software repository to the yum source (build a third-party software repository)  

First put all rpm packages into a directory, this directory can only store rpm files   /mnt/software/

Ls to see if there are only packages

createrepo -v /mnt/software/        ####createrepo -v /rpm software storage directory

###create creates     repo as the abbreviation of repository to represent warehouse


ls again will find one more repodata  

    

cd into repodata      ls to check


decompress


 

 

vim /etc/yum.repos.d/rhel_dvd.repo ####The repository points to the file location

 

add in


[software] #### Custom software repository name

name=software #### Custom software repository description

baseurl=file:///mnt/software ####file:///rpm storage directory       #### Warehouse location

gpgcheck=0 ######## Do not detect gpgcheck  

enabled=1 ###### Give self-enable permission

 

yum clean all

 

The third-party software repository software has been successfully mounted

 

install httpd

yum install httpd -y


[root@localhost software]# systemctl start httpd               打开httpd

[root@localhost software]# systemctl enable httpd             is set to auto-start at boot

ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'

[root@localhost software]# pwd

/mnt/software

[root@localhost software]# cp -r /mnt/software/ /var/www/html/

 install wps


View the list of WPS installations



yum source blacklist (block a certain category or a certain software in the yum source)

yum list    view software list

 vim /etc/yum.conf


add in

exclude=*.i686 ######## Block 32 bits


yum list    view software list


exclude=*.i686 *.i386 ######## Shield 32 -bit shield.i386


yum list    view software list


exclude=*.i686 *.i386 zziplib.x86_64 ######## Shield   32 - bit shield.i386 shield zziplib this software


yum list    view software list


Guess you like

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