Linux under the CD Yum source and simple software Installation

Source: Internet
Author: User
Tags python script

Linux Software installation package common Source package , binary package ,

Software Installation generally has the following methods: RPM Package Installation , Yum Installation , and Script Installation .

Strictly speaking, the script installation is not a standalone installation, but a simplified version of the complex software installation of the Linux character interface, which writes complex installation commands in a script file, such as Nginx installation, fail2ban< with Python script > installation. If you are interested, you can check the information.

The next step is to start a formal Yum source build.

Environment: Vmware10,linux--->centos6.5 under Windows 7 environment

The first thing to note is that the local Yum source was built to solve the installation of the software without the network, followed by the operation steps. < require the user to be the root administrator >

1, the first is the CD-ROM mount.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/89/02/wKiom1gEklaxYo6nAADER4eU4yE522.png "title=" 1.png " alt= "Wkiom1geklaxyo6naader4eu4ye522.png"/> Here is to install the Linux image file, click OK, then the command line mode operation.

Start mount: First create a new mount point cdrom in the/mnt directory,

Mkdir/mnt/cdrom mount/dev/sr0

2, Next, then make the network Yum source invalid. Because the Yum source defaults to using the network yum, we need to disable the network Yum source and switch to the directory/etc/yum.repos.d/

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/89/0E/wKiom1gGJ6TT3vrlAAAOOue48Cw052.png "title=" 2.png " alt= "Wkiom1ggj6tt3vrlaaaooue48cw052.png"/>

Here are just two items to look at:

Centos-base.repo---> Network yum source

Centos-media.repo----> CD local Yum source

To make the network Yum source invalid, you can delete the file Centos-base.repo, of course, we do not need to do so, because we may also use the network Yum Source, after all, the network of Yum Source will not regularly provide software. Here we rename the file to block out his search.

Execute command:

cd/etc/yum.repos.d/

MV Centos-base.repocentos-base.repo.bak

3. Make local Yum source effective

Open the file Centos-media.repo, and modify the following:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/89/0E/wKiom1gGKbLy0UwqAADQv94Eqqs071.png "title=" 4.png " alt= "Wkiom1ggkbly0uwqaadqv94eqqs071.png"/>

After the change is over, the local network Yum source is built successfully. We can use the command

Yum List

To see which packages of the current Yum source are available for installation.

You can also use the command

Yum Search keyword

To search for all the keyword-related packages on the server.


4, next to install g++ tool for example, to install

<g++ tool is C + + compiler tool, Linux Direct Search g++ command is not query, should query gcc-c++>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/89/0E/wKiom1gGLCmS624EAAATJm_bqHQ604.png "title=" 5.png " alt= "Wkiom1gglcms624eaaatjm_bqhq604.png"/> Execute the installation command:

Yum-y Install gcc-c++

The <-Y option represents an automatic answer yes>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/89/0E/wKiom1gGLQCAIL2CAAA_V7vLC8k429.png "title=" 6.png " alt= "Wkiom1gglqcail2caaa_v7vlc8k429.png"/>

After that, the installation was successful, and then I told you two other two commands for Yum source use

YUM-Y Update package name//upgrade command YUM-Y Remove package name//uninstall command

With regard to the upgrade command, only a later package in the Yum source can be upgraded, otherwise "No packages" will be displayed

Marked for Update ". < upgrade is a common Windows operation, but in Linux, generally do not upgrade, the server upgrade will pay a certain price, upgrade needs to stop the running services. > If the above command does not have a package name, all services, including the Linux kernel, are upgraded. Linux new kernel needs to be reconfigured, prior to CentOS 6.3 version, the system will crash when executing this command. If

The server is placed in the remote room, carefully execute the command.

5. YUM Software Group Management commands

Yum grouplist--------> List all available software groups, Shell Chinese display, native English display, enter command "Lang=en_us" in the shell Yumgroupinstall software group name----> Install the specified software group Yum groupremove software group name----> uninstall the specified software group.



Why would you recommend using a local Yum source? The reason is simple, because the local Yum source installation is more efficient, and we install the software generally does not need to upgrade to a higher version, the Linux server under the software requirements are stable and efficient!!

This article is from the "Twilight Back" blog, make sure to keep this source http://muhuizz.blog.51cto.com/11321490/1863200

Linux under the CD Yum source and simple software Installation

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.