The use of Yum under Linux

Source: Internet
Author: User

in theLinuxunder(to prevent installation errors, experiment under virtual machines),there is a dependency on the installation package when the package is installed,trouble mounting.,so to useYumthe installation,but you use it directly, and you usually get an error .,because it's the default networking state,so,need to be tuned to bridging mode..

here 's a demonstration Yum the configuration , How to use it properly

Server Installation

[Email protected] ~]# cat/etc/redhat-release

Red Hat Enterprise Linux Server release 6.4 (Santiago)

[Email protected] ~]# uname-a

Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 11:47:41 EST x86_64 x86_64 x86_64 gnu/linux

Server Basic Configuration

[Email protected] ~]# vi/etc/sysconfig/network-scripts/ifcfg-eth1

Device= "Eth1"

bootproto= "Static"

Nm_controlled= "Yes"

onboot= "Yes"

Type= "Ethernet"

ipaddr=192.168.188.111

netmask=255.255.255.0

gateway=192.168.188.2

[Email protected] ~]# vi/etc/sysconfig/network-scripts/ifcfg-eth1

[Email protected] ~]# service network restart

Shutting down interface eth1: [ OK ]

Shutting down loopback interface: [ OK ]

Bringing up loopback interface: [ OK ]

the above must have been configured before. , The first step is to walk a process . Look professional .

[Email protected] ~]# Cat/proc/sys/dev/cdrom/info

CD-ROM information, ID:CDROM.C 3.20 2003/12/17

Drive NAME:SR0

Drive Speed:1

Drive # of Slots:1

Can Close Tray:1

Can Open Tray:1

Can Lock Tray:1

Can Change Speed:1

Can Select disk:0

Can Read Multisession:1

Can Read Mcn:1

Reports Media changed:1

Can Play Audio:1

Can Write CD-r: 1

Can Write Cd-rw:1

Can Read Dvd:1

Can Write DVD-r: 1

Can Write Dvd-ram:1

Can Read Mrw:1

Can Write Mrw:1

Can Write Ram:1

[Email protected] ~]# Mkdir/mnt/server

[Email protected] ~]# mount/dev/cdrom/mnt/server/

Mount:block Device/dev/sr0 is write-protected, mounting read-only

[email protected] server]# ll |wc–l WC show the total number

50

[Email protected] yum.repos.d]# Vi/etc/yum.repos.d/yum.repo

[Base]

name=red Hat Enterprise Linux Base

Baseurl=file:///mnt/server

Enabled=1

Gpgcheck=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release

( red for added content )

make Yum clear, and then update the cache

[Email protected] yum.repos.d]# cd/etc/pki/rpm-gpg/

[email protected] rpm-gpg]# Yum Clean all

Loaded Plugins:product-id, Security, Subscription-manager

This system isn't registered to Red Hat Subscription Management. You can use the Subscription-manager to register.

Cleaning Repos:base

Cleaning up everything

This will be successful, if there is any doubt, we can leave a message to solve. Different versions have different methods.

This article is from the "Li Jingxiang" blog, make sure to keep this source http://9283898.blog.51cto.com/9273898/1550322

The use of Yum under Linux

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.