1. Change Source
Well, for all the reasons, the download speed of many yum source paths provided by centos is very slow. So, change the source.
# cd /etc/yum.repos.d# cpCentOS-Base.repoCentOS-Base.repo.backup# vim CentOS-Base.repo
Under normal circumstances, the CentOS-Base.repo file is used to obtain the Source Path listing and then download the source package, don't worry about him, delete these lines
mirrorlist=http://mirrorlist.centos.org/?releas
In Linux, how does one change the yum download location to local download ?, Yum local downloadLocation of the configuration file downloaded from yum
Cd/etc/yum. repos. d/
Change the file name to invalidate the file
Rename. repo. repo. bak *
Change CentOS-Media.repo.bak to local. repo
CentOS-Media.repo.bak cp lo
cd/etc/yum.repos.d/switch to the YUM.REPOS.D directory under the ETC directoryLS View the Yum source file information for the current Linux system, where the Centos-base.repo file is the default Yum sourceIf you can surf the Internet with Centos-base.repo, if not the Internet, use Centos-media.repoVim/etc/yum.repos.d/centos-base.repo View the current Linux system default network
When yum is used, the download package settings are retained, and the yum retention package settings are retained.
From: http://www.360doc.com/content/11/0218/15/4171006_94080041.shtml
Configure yum to retain the downloaded rpm package for future upgrades or reinstallation.Modify/etc/yum. conf[Main]Cachedir =/home/
Configure local yum source for centos and yum source for centos
Each line of code starts when you modify the CentOS-Media.repoDo not have spaces
[C6-media] # library name = CentOS-$ releasever-Media # name Description baseurl = file: // media/centos/# yum source directory, source address gpgcheck = 1 # Check GPG-KEY, 0 is not checked, 1 is to check whether enab
A Python2.7 is installed, and yum cannot be used the next day. The error message is as follows:Bytes ------------------------------------------------------------------------------------------------There was a problem importing one of the Python modulesRequired to run yum. The error leading to this problem was:No module named yumBytes --------------------------------------------------------------------------
In the CentOS VM provided by the company,/ETC/YUM.REPOS.D has only one Build.repo, which provides only a few sources within the company, and many packages are not found in these sources. So to add another source, the following post describes how to add USTC, Sohu, and 163 yum sources in CentOS: http://www.husw.net/blog/post/1386/. Excerpts are as follows:
This article introduces the Yum source support versi
Another appis currently holding the YumLock WaitingForIt to exit ... The other applicationIs: PackageKit Memory:153 M RSS (266MB VSZ) Started:thu Jul1200:03:052012-06:17Ago State:sleeping, PID:4018another app is Currently holding the Yum lock; waiting for it to exit ... The other application is: PackageKit Memory: 153 M RSS (266 MB VSZ) Started:thu Jul 12 00:03:05 2012-06:194018 Workaround:Rm-rf/var/run/yum.pid to forcibly unlock, and then yo
Mount/dev/cdrom/mnt/cdrom Install the device name/dev/cdrom below the Mnt/cdrom mount pointMount View all current mount informationCD/ETC/YUM.REPOS.D Switch to etc/yum.repos.d directory ls View current directory All information mv CentOS-base.repo centos-Base.repo.bak move files and Add. bak suffix name mv CentOS-fasttrack.repo centos-fasttrack.repo.bak move files and increase. bak suffix name mv CentOS- Vault.repo centos-Vault.repo.bak Move the file and increase the. bak suffix name mv Cent
First, preface Yum installs off-line RPM package, prompt:
FILE/I386/OS/REPODATA/PRIMARY.XML.GZ: [Errno-3] Error performing checksumTrying other mirror.Error:failure:repodata/primary.xml.gz from ascnew: [Errno 256] No more mirrors to try. So turn to Google for no results, and then go to fedora11 repodata/ Repomd.xml checksum, found that the Createrepo used Sumtype unexpectedly is sha256, resulting in RHEL development machine no sha256 algorithm, thus
download time for metadata and mirrorlistsPackages empty the cached packageHeaders clear Short FileMetadata emptying metadata (package information)Dbcache empty the SQL cache so access to Matadata is slow.Rpmdb emptying local RpmdbPlugins emptying the plugin cacheAll empty above allSearchSearch for relevant information based on keyword, display package information containing ZSH keywordReinstallDirect coverage of the original program, do not need to unload the reloadDowngrade downgradeDemote th
Company test machine Environment do not know what to unload my package, resulting in Yum run error status:System version: Red Hat Enterprise Linux Server Release 6.2 (Santiago)Kernel version: 2.6.32-220.el6.x86_64Error situation:There was a problem importing one of the Python modulesRequired to run Yum. The error leading to this problem was:No module named SQLiteInstall a package which provides this module,
Five week second class (November 14)7.6 Yum Replace the domestic source
Yum install-y epel-release #安装扩展源epel
Default Yum source address, the domestic has 163 and Sohu speed relatively fast
[root@wwlinux701 yum.repos.d]# cat Centos-base.repo [Base] name=centos-$releasever-base mirrorlist=http:// mirrorlist.centos.org/?release= $releasever arch= $basearch repo=os
opened on this computer, prompting for insufficient permissions.Workaround: Under Superuser, give the directory of the application to a 777 permissions, so you can open it. 2. The landlord in the real machine to do experiments, first put the real machine on the Firefox browser to delete, and then use RPM-VIH filename.rpm format installation appeared error650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/44/wKioL1gOJSrBTkpaAAFPktrCPVc992.png-wh_500x0-wm_3 -wmp_4-s_1992618860.png "tit
opened on this computer, prompting for insufficient permissions.Workaround: Under Superuser, give the directory of the application to a 777 permissions, so you can open it. 2. The landlord in the real machine to do experiments, first put the real machine on the Firefox browser to delete, and then use RPM-VIH filename.rpm format installation appeared error650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/44/wKioL1gOJSrBTkpaAAFPktrCPVc992.png-wh_500x0-wm_3 -wmp_4-s_1992618860.png "tit
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
Copy CodeThe code is as follows:Yum-y UpdateUpgrade all packages and also upgrade software and system coresCopy CodeThe code is as follows:Yum-y UpgradeUpgrade all packages only, without upgrading software and system coresExperiments were tested YUM-Y upgrade and yum-y updatePre-upgradeSystem version: centos5.5Kernel version: 2.6.18-194.el5Simple configuration file modification before upgradeYum-y Upgrade a
Linux Upgrade commands The difference between Yum upgrade and Yum updateYum-y UpdateUpgrade all packages and also upgrade software and system coresYum-y UpgradeUpgrade all packages only, without upgrading software and system coresExampleFrom for notes (Wiz)Linux upgrade commands the difference between Yum upgrade and Yum
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.