CentOS6.3 system yum local image Installation

Source: Internet
Author: User
Tags php software

CentOS6.3 system yum local image installation yum. conf file description [Introduction] yum is an installation and deletion program designed for the rpm system for automatic update of software packages. It automatically solves the software package dependency problem, making it easier to install and delete the rpm software. Yum, namely yellowdog updater modified, was developed by the DUKE University's Linux development team. [Configuration file overview] The yum configuration file is divided into two parts: main and repositorymain, which define global configuration options. The entire yum configuration file should have only one main. It is usually located in/etc/yum. conf. The repository section defines the specific configurations of each source/server. There can be one or more configurations. It is usually located in the files in the/etc/yum. repo. d directory. [Introduction to yum. conf] The yum. conf file is generally located in the/etc directory and generally only contains configuration options in the main section. The content is generally [main] cachedir =/var/cache/yum # cachedir: cache directory when the yum software is updated. The default value is/var/cache/yumdebuglevel = 2 # debuglevel: debug information output level, ranging from 0 to 10. The default value is 2 logfile =/var/log/yum. log # logfile: the directory that stores the system update software logs. You can go to the/var/log/yum. log File to query the updates you have made in the past. Pkgpolicy = newest # package policy. There are two options: newest and last. If you set multiple repository and the same software is stored in the same time in different repository, which one should yum install, if it is newest, yum will install the latest version. If it is last, yum will sort the server IDs in alphabetical order and select the software installation on the last server. Generally, select newest. Distroverpkg = redhat-release # specify a software package. yum determines your release version based on the package. The default value is redhat-release, you can also install any rpm packages for your own release. Tolerant = 1 # If the value is 1, yum ignores any packet errors. For example, if you run yum to install baz, if the baz package is already installed in the system, yum will continue to install baz again without reporting an error. The default value is 1. If exactarch = 1 # is set to 1, yum only installs software packages that match the system architecture. For example, yum does not install software packages of i686 in systems suitable for i386. The default value is 1 retries = 20 # Number of retries after an error occurs in the network connection. If it is set to 0, an unlimited number of retries will be made. The default value is 6 obsoletes = 1 # This option is used for cross-version release upgrade. Gpgcheck = 1 # there are two options: 1 and 0, which respectively indicate whether or not to perform gpg verification. This option is valid for each repository if it is set in [main. The default value is 0. # put your repos here or in separate files named file. repo # in/etc/yum. repos. d [yum. variable in conf: $ releasever indicates the version number of the release. If the system is fedora core 6, 6 $ basearch is returned: displays the basic architecture type. If the system is i386 or i686, all files in the/etc/yum. repos. d/directory are returned to the package for backup. [Root @ centOS yum. repos. d] # lsCentOS-Base.repo CentOS-Vault.repo mirrors-rpmforge-testingCentOS-Debuginfo.repo mirrors-rpmforge. repoCentOS-Media.repo mirrors-rpmforge-extras [root @ centOS yum. repos. d] # tar czvf .. /yum.repos.d.tar.gz. /*. /CentOS-Base.repo. /CentOS-Debuginfo.repo. /CentOS-Media.repo. /CentOS-Vault.repo. /mirrors-rpmforge. /mirrors-rpmforge-extras. /mirrors-rpmforge-testing. /rpmforge. Repo 2. delete the files in the default/etc/yum. repos. d directory (to prevent interference ). [Root @ centOS yum. repos. d] # rm-rf. /* [root @ centOS yum. repos. d] # ls [root @ centOS yum. repos. d] #3. create the yum installation configuration file [root @ centOS yum. repos. d] # vim GuangPan. repo configuration: [GangPan] name = centos6.3 baseurl = file: // media/centos6.3/gpgcheck = 0 enabled = 1 4. create a CD Mount directory and mount [root @ centOS yum. repos. d] # mkdir/media/centos6.3/[root @ centOS yum. repos. d] # mount/dev/cdrom/media/centos6.3/mount: block device/dev/sr0 is wr Ite-protected, mounting read-only 5. clear cache [root @ centOS yum. repos. d] # yum clean allLoaded plugins: fastestmirror, refresh-packagekit, securityCleaning repos: GangPanCleaning up EverythingCleaning up list of fastest mirrors 6. use the yum installation method to test and install the PHP software package. [Root @ centOS yum. repos. d] # yum repolistLoaded plugins: fastestmirror, refresh-packagekit, securityDetermining fastest mirrorsGangPan | 4.0 kB... gangPan/primary_db | 3.5 MB... repo id repo name statusGangPan centos6.3 4,776 repolist: 4,776 [root @ centOS yum. repos. d] # yum install phpLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfileSettin G up Install ProcessResolving Dependencies --> Running transaction check ---> Package php. i686 0: 5. 3.3-3. el6_2.8 will be installed --> Processing Dependency: php-common = 5.3.3-3. el6_2.8 for package: php-5.3.3-3.el6_2.8.i686 --> Processing Dependency: php-cli = 5.3.3-3. el6_2.8 for package: php-5.3.3-3.el6_2.8.i686 --> Running transaction check ---> Package php-cli.i686 0: 5. 3.3-3. el6_2.8 will be installe D ---> Package php-common.i686. 3.3-3. el6_2.8 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================== ================= Package Arch Version Repository Size ====================== ======================================== Installing: php i686 5.3.3-3. el6_2.8 gangpan1.1 MInstalling for dependencies: php-cli i686 5.3.3-3. el6_2.8 GangPan 2.2 M php-common i686 5.3.3-3. el6 _ 2.8 GangPan 523 k Transaction Summary ================================== ============= Install 3 Package (s) total download size: 3.8 MInstalled size: 12 MIs this OK [y/N]: yDownloading Packages: bytes Total 5.2 MB/s | 3.8 MB 00:00 Running bytes Transaction TestTransaction Test SucceededRunning Transaction Installing: php-common-5.3.3-3.el6_2.8. I 686 1/3 Installing: php-cli-5.3.3-3.el6_2.8.i686 2/3 Installing: php-5.3.3-3.el6_2.8.i686 3/3 Verifying: php-common-5.3.3-3.el6_2.8.i686 1/3 Verifying: php-5.3.3-3.el6_2.8.i686 2/3 Verifying: php-cli-5.3.3-3.el6_2.8.i686 3/3 Installed: php. i686 0: 5. 3.3-3. el6_2.8 Dependency Installed: php-cli.i686 0: 5. 3.3-3. el6_2.8 php-common.i686. 3.3-3. el6_2.8 Complete! 7. The yum Local CD is successfully installed.

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.