RHCE experience 3 sharing steps of building local Yum source and CD Yum source based on vsftp


1、 Local source setup for Yum environment (based on vsftp):

  1) Install vsftp;

[[email protected] ~]# mount /dev/hdc /mnt
[[email protected] ~]# cd /mnt/Server/
[[email protected] Server]# ls |grep vsftp
[[email protected] Server]# rpm –import /etc/pki/rpm-pgp/RPM- PGP-KEY-redhat-release
[[email protected] Server]# rpm -ivh vsftpd-2.0.5-12.el5.i386.rpm
[[email protected] Server]# chkconfig vsftpd on  //Turn on the computer to run the vsftpd service automatically
[[email protected] Server]# service vsftpd restart

2) Move all the files in the installation CD to / var / ftp / pub directory;
  3) Install createrepo and create the relevant Yum library files:

[[email protected] Server]# ls |grep create
[[email protected] Server]# rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm
[[email protected] Server]# createrepo -v /var/ftp/pub  //After typing the command, wait for a while and it will be processed

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

[yumok]   (name can be written freely)
Name = yumok (name can be written as above)
baseurl= (fill in the local IP address and related path. The root here is / var / ftp /; if the yum server is not the corresponding address of the local machine, you can modify this address.)


5) Test 1; For example, we install GCC
Yum list| grep gcc*; Lists the relevant Yum sources.
Yum install gcc.i386 ; The source files of Yum related packages end with. I386
6) Uninstall the package source using Yum;
Yum remove gcc ; When uninstalling the package source, only the specified packages will be uninstalled. Packages that need to be installed synchronously will not be deleted.
Note: if you cannot view the list with the yum list command and it is shielded before fire prevention
1) Firewall problem: open port 20:21: VIM / etc / sysconf / iptables

… omitted before
-A RH-Firewall-1-INPUT -p tcp —dport 20:21 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp —dport 20:21 -j ACCEPT
… omitted after   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


2: Yum environment CD source:

1) Hanging on RedHat Linux 5. X CD:
mount /dev/hdc  /mnt
2) Edit / etc / yum.conf    Add the following content



Recommended Today

The selector returned by ngrx store createselector performs one-step debugging of fetching logic

Test source code: import { Component } from ‘@angular/core’; import { createSelector } from ‘@ngrx/store’; export interface State { counter1: number; counter2: number; } export const selectCounter1 = (state: State) => state.counter1; export const selectCounter2 = (state: State) => state.counter2; export const selectTotal = createSelector( selectCounter1, selectCounter2, (counter1, counter2) => counter1 + counter2 ); // […]