Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Related configuration of yum of [basic part]

Shulou Source: shulou.com Published: 2022-06-01 02:48:41 10月04日 Update

1. Configure a local yum source

Mount / iso/ image name / mnt

Vim / etc/yum.repos.d/yum.repo (yum source profile)

[yumsource]

Name=yumsource

Baseurl= file:///mnt

Gpgcheck=0

two。 Configure a network yum source

Echo "/ iso/ image name image mount point iso9660 ro 0" > > / etc/fstab (auto mount on boot) [Note that / etc/fstab file cannot be overwritten]

Execute mount-an after modifying fstab

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

[yumsource]

Name=yumsource

Baseurl= file:///mnt

Gpgcheck=0

3. Establishment of third-party software library

Move third-party software to / software

Execute createrepo / software in the directory

Generate repodate directory

Write yum source configuration file

4.yum software control

Vim / etc/yum.conf

Exclude=*.x86_64 (ignore 64-bit installation packages)

Exclude=*.i686 (ignore 32-bit installation packages)

5.yum list all lists all installation packages

Yum remove uninstall

Yum search search

Yum whatprovides searches for software packages that contain a file

Yum info query software information

Tags: Software configuration file image name directory third party information network software package software library control search query generation mobile foundation part Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info MySQL MariaDB Docker