Yum uses a Local CD as a software repository to automatically detect dependencies and install dependent packages.
1. Mount the optical drive
# Mount/dev/cdrom/mnt
2. Back up the original software warehouse configuration file
# Cp-a/etc/yum. repos. d/rhel-debuginfo.repo/etc/yum. repos. d/rhel-debuginfo.repo.bak
3. Edit the configuration file of the original software warehouse
# Vim/etc/yum. repos. d/rhel-debuginfo.repo
[Rhel-debuginfo]
Name = Red Hat Enterprise Linux // random name
Baseurl = file: // mnt/Server // file: // Headers
Enabled = 1 // the location where the file is enabled
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
4. Install software using yum
# Yum instal mysql-server
5. yum image software
# Yum install yumex. noarch
After the installation is complete, use the command yumex to call up the yum program on the GUI.
Tar.gz tar.bz2
# Tar-xzvf (xjvf) xxxx.tar.gz
# Chmod 777./xxxx
# Cd xxxx
#./Configure // check the running environment of the software
# Make // run the mak script to create a Software Installation File
# Make install // run make install to start Software Installation
Some software packages end with. src. rpm. These software packages are rpm packages that contain source code and need to be compiled during installation. There are two ways to install such software packages:
Method 1:
1. Execute rpm-ivh your-package.src.rpm
2. cd/usr/src/redhat/SPECS
3. rpmbuild-bp your-package.specs A specs file with the same name as your package
4. cd/usr/src/redhat/BUILD/your-package/a directory with the same name as your package
5 ../configure this step is the same as compiling common source code software. You can add Parameters
6. make
7. make install
Method 2:
1. Execute rpm-I you-package.src.rpm
2. cd/usr/src/redhat/SPECS (the first two steps are the same as method 1)
3. rpmbuild-bb your-package.specs A specs file with the same name as your package
In this case, under the directory/usr/src/redhat/RPM/i386/(depending on the specific package, it may be i686, noarch, etc, there is a new rpm package, which is a compiled binary file. Run:
Rpm-I new-package.rpm installation is complete.
Author: "New network subnet"