Linux software installation

Source: Internet
Author: User
Tags rpmbuild

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.