Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Unit13

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

1. Software installation

1) Software name identification

[abrt-addon-ccpp]-[2.1.11-29] .[ e17] ..x84 _ 64] .rpm # rpm end is applicable to the redhat operating system

Software name Software version Software applicable system 64-bit suffix

2) Software installation rpm

Name software name the name of the name.rpm software installation package

Rpm-I name.rpm installation

-v name.rpm shows installation progress

-h name.rpm specifies the encryption method

-e name uninstall

-ql name query software generates files

-qlp name.rpm query what files will be generated after the software is installed

-qa query what files will be generated after the software is installed

-qa | grep name queries whether to install name software

-Q name.

-qp name.rpm query software name after installation of the security subpackage

-qf filename queries which installation package filename belongs to

-ivh name.rpm-- force forced installation

-qi name to view software information

-Kv name.rpm detects whether the software package has been tampered with

-qp name.rpm detects the actions of the software during installation or uninstallation

3) yum

The most important function of the upper software management tool is that it can solve the dependence of the software.

The premise that yum can be put into use is that there must be a yum source and a file pointing to the configuration source.

Server source side

1. Download iso image files that match the version of the local system from the network

Rhel-serrhel-server-7.1-x86_64-dvd.iso

two。 Hang the rhel-server-7.1-x86_64-dvd.iso image file to / mnt for access to the image file

Mount rhel-server-7.1-x86_64-dvd.iso / mnt/var/www/html/rhel7.1

3. Configure native yum source pointing to

Rm-fr

4. Install shared resource services

Yum install httpd-y

Systemctl stop firewalld.service

Sytemctl disable firewalld

Systemctl start httpd

Systemctl enable httpd

5. Set up a shared directory and hang it in the image to mount it under the permission of root

Mkdir / var/www/html/rhel7.1

Mount rhel-server-7.1-x86_64-dvd.iso / var/www/html/rhel7.1

Umount rhel-server-7.1-x86_64-dvd.iso

six. test

Enter: http:// native ip/rhel7.1 in the browser

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

[xxxx] Custom Software Repository name

Name=xxxx Custom Software Repository description

Baseurl=ftp:// | http:// | location of file:// warehouse

Gpgcheck=0 does not detect gpgkey (logo of the software)

7. Modify native yum source point

Vim / etc/yum.repos.d/yum.repo

[Server]

Name=rhel7.1

Baseurl= file:///var/www/html/rhel7.1

Gpgcheck=0

Yum clean all empties yum cache to identify new configuration

8. Boot and mount

Vim / etc/rc.d/rc.local # this file is the last file for boot execution and can be found in the

Touch / var/lock/subsys/local

Mount / home/kiosk/Desktop/rhel-server-7.1-x86_64-dvd.iso / var/www/html/rhel7.1

Third-party software

Client pointing end

Vim / etc/yum.repos.d/xxxx.repo # # Warehouse points to file location

[xxxx]

Name=xxxx

Baseurl=ftp:// | http:// | file://

Gpgcheck=0

The Construction of third Party Software Warehouse

Put all rpm packages in one directory, and only rpm files can be found, otherwise the scan fails.

Createrrpo-v / rpm storage directory # each time a file is added to the package, it is executed

Vim / etc/yum.repos.d/redpo

[Software]

Name=software

Baseurl= file:///rpm storage directory

Gpgcheck=0

Custom software repository name

Name=xxxx # # Custom Software Repository description

Baseurl=ftp:// | http:// | filr:// # # Warehouse location

Gpgcheck=0 # # does not detect the logo of the software produced by gpgkey gpgkey.

Example:

Vim / etc/yum.repos.d/yumm.repo

[Server]

Name=rhel7.1

Baseurl= ftp://172.25.24.250/pub/rhel7.1

Gpgcheck=0

: wq

Unsolvable dependencies can be installed one by one with yum install name-y

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.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report