In the test, we used RedHatlinux6.0 to build the LAMP environment. When we first set up yum, we felt that there was a big difference between version 6.0 and version 5.0. In version 6.0,/etc/yum. repos. d/is an empty directory with no yum. you must create a yum. repo file. Th
to download the relevant installation packageCan be downloaded through Http://mirrors.163.com/centos, this is the author has downloaded the good Http://pan.baidu.com/s/1qW0MbgCStep two uninstall Redhat's own Yum#rpm-qa | grep Yum | Xargs rpm-e--nodepsStep three install the downloaded installation packagepython-iniparse-0.3.1-2.1.el6.noarch.rpmyum-metadata-parser-1.1.2-16.el6.x86_64.rpmyum-3.2.29-40.el6.cen
+ '/' +relative modified to remote= "/var/ftp/pub/server" + '/' +relativeHTTP is similar to FTP, except that the path is different and the protocol is different. The HTTP method is to put the source file into the HTML directoryYum ClientYum configuration generally has two ways, one is to configure the yum.conf file in the/etc directory directly, and the other is to add the. repo file under the/ETC/YUM.REPOS.D directory.[Email protected] ~]# cat/etc/y
Version: CentOS 6.4Framework: x86_64Update Time: updated every 5 hours1. First back up/etc/yum. repos. d/CentOS-Base.repo[Root @ localhost ~] # Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.bak
2. Download the repo file of the corresponding version and put it in/etc/
The part of judgment and inspection can be set or not executed checknginxroot to avoid being subject to permission problems#!/bin/bash#by LCip= ' Ifconfig eth0|awk-f ' [:]+ ' Nr==2{print $4} 'Curl= ' curl-i $IP |egrep "403|200|404" |head-1|wc-l 'Zhandian=/data01/static/shareExtra=haixiang.confservername=lc.lc.orgToolsdir=/application/toolsnginxdir=/application/nginx1.8.0Extardir=/application/nginx1.8.0/conf/extraAliyun=/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/
do not need to be synchronized into the corresponding file, one directory per line
For example:
VI exclude_epel.list
4 /
4as /
4es /
4ws /
: wq! #Save and exit
Iv. Adding scripts to perform tasks regularly
Vi / etc / crontab #Add the following code to the last line
0 1 * * * root / home / crontab / yum_rsync.sh #Set the script to run every day at 1am
: wq! #Save and exit
Service Crond Restart #Restart
Test article:
First, install rsync synchronization software
repository that provides Linux yum upgrade on the Internet generally provides similar instructions, such as DAG, which provides the rpm for installation. After installation, the Linux yum is configured, you can directly use the following command to execute system maintenance, such as dries, you can create a dries. repo file, the content is [dries] name = Extra F
Tutorial Background:
There are two prerequisites for installing the packages using the yum tool:
1. There is a valid yum configuration file (the file ending with. repo in the/etc/yum. repos. d directory)
2. specify a valid yum repository in the
/usr/share/applications/folder, create a new Eclipse.desktop file with vim
[Desktop Entry]
Encoding=utf-8
name=eclipse
comment=eclipse Luna
exec=/opt/eclipse/eclipse
icon=/opt/eclipse/ ICON.XPM
categories=development
type=application
terminal=0
4.4 MongoDB Related configuration
4.4.1 Website Installation tutorials, here, the following steps:
[root@localhost ~]# sudo vim/etc/yum.repos.d/mongodb-org-3.4.repo//edit configuration
centos help document for the CentOS6-Base-163.repo and store it in/etc/yum. repo. d.
Centos 5 wget http://mirrors.163.com/.help/CentOS5-Base-163.repo
Centos 6 wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
The procedure is as follows:
2. First back up/etc/
Tags: oracle linux 4-5-6-7 online yum MountManually connecting to the Oracle Linux Yum Server
Download and Install Oracle LinuxNote: The Oracle Linux Yum Server is already configured on Oracle Linux 5 update 7 and Oracle Linux 6 Update 3 and higher. No further configuration is necessary.
Note:Linux for Sparc 1.0 ISOs is available at:https://oss.orac
First, introduce
Sometimes in order to facilitate the download package, the speed is not fast, so use to build local yum. The advantage is the ability to quickly install the required packages and tools, the disadvantage is that can not be updated online. A total of two methods
Ii. Installation and configuration (method i)
1, download the image file, if any, you can omit this step
CD/USR/LOCAL/SRC #进入目录wget Http://mirrors.163.com/centos/6.5/isos/x8
Upgrading specific systems and software using Yum installation:
the article includes Yum configuration files and Repo detailed documentation, and will redhat5.1 Upgrade to redhat5.11 two parts .
First, yum installation view
Yum main function is more convenient to add/remov
Tags: node ISE srpm exist Extras warehouse plugin arc sed1. Configure the Yum local source1. Mount the image[[emailprotected] ~]# mount /dev/cdrom /mnt2. See if the mount is successful[[emailprotected] ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/sda3 49G 1.3G 48G 3% /devtmpfs 479M 0 479M 0% /devtmpfs 489M 0 489M 0% /dev/shmtmpfs 489M 6.6M 482M 2% /runtmpfs 489M 0
CentOS6 for yum source method summary
The yum source in this article supports CentOS 6 series and RHEL6 series in theory.The update method is as follows:
First, go to the yum source configuration directory.
Cd/etc/yum. repos. d
Yum source of the Backup System
Mv CentOS-Base.
First, yum change domestic sourceFirst of allcd /etc/yum.repos.d/rm -f dvd.repoDelete the previously added local repository and restore the original warehouse backcp /etc/yum.repos.d.bak/* /etc/yum.repos.d/cp ../yum.repos.d.bak/* .The above two commands are all possible, the second one is used under practice: And.LS View file list, delete Centos-base.reporm -rf CentOS-Base.repoCreate a domestic sourcewget http://mirrors.163.com/.help/CentOS7-Base
mkdir/mnt/cdrom2. Upload The iso image file to the/mnt/iso folder. 3. mount the iso file under/mnt/iso/to the/mnt/cdrom directory mount-o loop/mnt/iso/XXXXX. iso/mnt/cdrom
Busy. at this time, you need to unmount umount and check whether the mounting is successful: df-h
4.
If there are other *. repo files under/etc/yum. repos/, create a folder
Some *. the repo
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.