Establish your YUM server and use yum to provide an upgrade package for AS3 UP2

xiaoxiao2021-03-06  39

Yum yum build server and use the provided upgrade package author as3 up2: Blue Porch Date: 2004-10-17 18:08:36 Views: 206 Introduction: Now RHAS3 version has come to UP3 (kernel: 2.4.21-20. EL), and the system I use now is UP2, where kernel is: 2.4.21-15.El, I originally taken into account management, I don't know why I found APT-Cache Search PKG after I installed the APT in Rhas3up2. Can't find correctly, there is no way, I have to use yum, and the following is introduced. Related software I have put: http://download.rlinuxUX.net: 82 / yum / You can choose from here. 1. Install Yum rpm -UVH http://ftp.freshrpms.net/pub/freshrpms/redhat/9/yum/yum-2.0.4-1.r.fr.i386.rpm or download TAR to install WGET-C Http://linux.lsu.edu/yum/tar/yum-2.0.5.tar.gz or: wget -c http://linux.lsu.edu/yum/tar/yum-1.0.3.tar. GZ I use yum-2.0.5 as an example: TAR ZXVF YUM-2.0.5.tar.gz CD Yum-2.0.5 ./configure --sysconfdir = / etc Make make install yum installed, there are several The file should pay special attention to /etc/yum.conf: This file is used as a Client of Yum. [root @ Test root] # vi /etc/yum.conf # In this file, the annotation symbol is #, and each big project is [] as the start # except [main] is used in native-related parameters In addition, when you use the server's directory, #, you need additional regulations. We use two book / update two directories as described above: [main] cachedir = / var / cache / yum debuglevel = 2 logfile = / var / log / yum.log pkgpolicy = newest distribboverpkg = fedora-release tolerant = 1 exactarch = 1 # The above mainly specifies the directory used when performing YUM. For example / var / cache / yum.

[Base] name = fedora Core $ Releasever - $ basearch - base baseURL = http: //127.0.0.1/yum/fedora/core1/base # here is important, the middle bracket [] is the "directory name" needs to correspond Correct 喔 # Name only shows the 咚咚 in the directory, is not important; # baseurl is a complete URL! Please fill in the correct! [Updates] name = fedora Core $ Releasever - $ basearch - released updates baseURL = http: //127.0.0.1/yum/fedora/core1/Updates In fact, we just set up [Base] and [Updates] in BaseURL Yes! 2. Import GPG Key RPM - IMPORT / USR / Share / RHN / RPM-GPG-Key RPM - IMPORT http://ftp.freshrpms.net/pub/freshrpms/rpm-gpg-key Otherwise during installation Will prompt the Key error warning. 3.Yum usage method [root @ Test root] # yum

Parameter Description: Options: Only common parameters are listed here. -Y If YUM needs to respond during the work, this parameter can answer Yes update items: updated actions have the following: install: Install a certain set, then need to pick a set name; Update: This is upgraded! If the UPDATE is later connected to the set name, it means that as long as YUM is upgraded, if the update is not connected to the set name, it means that Yum is upgraded for all installed suits of the current host! This is the most common project. List: List the RPM suite currently in Yum Server; Info: The content of a kit, similar to RPM-Qi Packages. Clean: Remove the downloaded packages or Headers that will have been downloaded. REMOVE: Removes a suite that has been installed in our system! Example: [root @ test root] # yum install hdparm # Install HDPARM This kit [root @ Test root] # Yum Update hdparm # Update HDPARM This kit [root @ Test root] # Yum -y update # Update the current machine top All kits, and automatically reply to Yes [root @ Test root] # Yum Clean packages # will download to this RPM file delete (placed in / var / cache / yum. ## is updated daily, you can write / etc / crontab [root @ Test root] # vi / etc / crontab 40 5 * * * root yum -y update; yum clean packages 4. Establish YUM Pack Repository Directory YUM Pack Display Directory / VAR / WWW / HTML / YUM / Redhat / AS / 3 | --UP2 | `- HEADERS` --UP3 `- HEADERS Under the following Categories: MKDIR -P / VAR / WWW / HTML / YUM / RedHAT / AS / 3 / UP2 MKDIR -P / VAR / www / html / yum / redhat / as / 3 / up3 5. Analyze RPM's Header file Yum-Arch

转载请注明原文地址:https://www.9cbs.com/read-70718.html

New Post(0)