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

What are the steps of building local YUM source and CD YUM source based on VSFTP

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Today, I will talk to you about the steps of building a local YUM source and CD-ROM YUM source based on VSFTP, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

1. Local source construction of yum environment (based on VSFTP):

1) install vsftp

* *

[root@service ~] # mount / dev/hdc / mnt

[root@service ~] # cd / mnt/Server/

[root@service Server] # ls | grep vsftp

Vsftpd-2.0.5-12.el5.i386.rpm

[root@service Server] # rpm--import / etc/pki/rpm-pgp/RPM- PGP-KEY-redhat-release

[root@service Server] # rpm-ivh vsftpd-2.0.5-12.el5.i386.rpm

[root@service Server] # chkconfig vsftpd on / / enable the computer to automatically run the vsftpd service

[root@service Server] # service vsftpd restart

* * *

2) move all the files in the installation CD to the / var/ftp/pub directory

3) install createrepo and create relevant yum library files:

* * *

[root@service Server] # ls | grep create

Createrepo-0.4.11-3.el5.noarch.rpm

[root@service Server] # rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm

[root@service Server] # createrepo-v / var/ftp/pub / / wait a while to finish processing after typing the command

* * *

4) Edit / etc/yum.conf file; add the following:

Vim / etc/yum.conf

* *

[yumok] (name can be written freely)

Name=yumok (the name can be written as above)

Baseurl= ftp://192.168.1.88/pub/Server (enter the local IP address and related path, where the root is / var/ftp/; if the YUM server is not the local corresponding address, you can modify this address)

Enabled=1

Gpgcheck=1

*

5) Test Yum1; for example, we install gcc

Yum list | grep gcc*; lists the relevant yum sources.

The source files of Yum install gcc.i386 / yum related packages all end with .i386

6) Uninstall the package source of yum installation

Yum remove gcc; when uninstalling the package source, only the specified package will be uninstalled, and the package that needs to be installed synchronously will not be deleted.

Note: if there is a problem that you cannot view the screen before fire prevention when you view the list with the yum list command

1) Firewall problem: open port 20:21: vim / etc/sysconf/iptables

* * *

…… Preceding omission

-A RH-Firewall-1-INPUT-p tcp-dport 20:21-j ACCEPT

-A RH-Firewall-1-INPUT-p udp-dport 20:21-j ACCEPT

…… After omitting, add the above two lines.

* * *

2) problems with selinux:

* * *

Setsebool-P-ftpd_disable_trans on

Setsebool-P-allow_ftpd_full_access on

Servie vsftpd restart

*

Second, build the CD source in yum environment:

1) hang it on the Redhat linux 5.x CD:

Mount / dev/hdc / mnt

2) just add the following to edit / etc/yum.conf

* *

[cdrom]

Name=cdrom

Baseurl= file:///mnt/Server

Enabled=1

Gpgcheck=1

* *

After reading the above, do you have any further understanding of the steps of building local YUM sources based on VSFTP and CD-ROM YUM sources? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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

Servers

Wechat

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

12
Report