Add EPEL Repo for centos

The default source software of centos is not very complete, and EPEL source needs to be added most of the time.

centos5.x

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

centos6.x

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

After adding, you can check it in /etc/yum.repos.d##

$ ls -1/etc/yum.repos.d/epel*/etc/yum.repos.d/remi.repo
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/remi.repo

Set up remi repository

The remi repository is updated quickly, if you really need the latest version of htopxxx, it is best to open it

sudo vim /etc/yum.repos.d/remi.repo

Edit [remi] paragraph:

name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
# baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority

Development Toolkit##

yum groupinstall "Development Tools"

SCL source##

http://wiki.centos.org/AdditionalResources/Repositories/SCL

Solve the problem of warehouse installation failure##

Sometimes a software can be searched, but the installation keeps reporting errors:

http://download.fedoraproject.org/pu...ry.sqlite.bz2:[Errno 12] Timeout:<urlopen error timed out>
Trying other mirror.

The easiest way to fix is to rebuild repos

yum clean all
rpm --rebuilddb
yum update

90 % Will work

Yum only downloads the installation package##

[ RHEL5]
yum -y install yum-downloadonly
yum install mongodb-org --downloadonly

[ RHEL6]
yum install yum-plugin-downloadonly
yum install --downloadonly --downloaddir=. mongodb-org

yum extracts the installed rpm package##

yum install yum-utils
yumdownloader <package>
yumdownloader <package>--resolve

yum upgrade kernel

http://elrepo.org/tiki/kernel-ml

elrepo url

http://elrepo.org/tiki/tiki-index.php

http://elrepo.org/linux/kernel/

http://mirrors.sohu.com/centos/6.6/xen4/x86_64/Packages/

mongodb RPM repo

https://repo.mongodb.org/yum/redhat

163 Mirror source##

http://mirrors.163.com/.help/centos.html

rpm common commands##

1 rpm -ivh --replacepkgs xxx.rpm
12 rpm -qp --queryformat "%{defaultprefix}\n" rpm -ivh --prefix
12 rpm -ql rpm -qs
1 rpm -qc
1 rpm -q --scripts
1 rpm -qf
1 rpm -qcf

|12| find /bin -type f -mtime -14 | rpm -qFrpm -qa --queryformat '%{installtime} %{name}-%{version}-%{release} %{installtime:date}\n' | sort -nr +1 | sed -e 's/[1]* //'|
|--------|--------|

|1| rpm -qa --queryformat '%{name-%{version}-%{release} %{size}\n' | sort -nr +1}'|
|--------|--------|

|1| rpm2cpio xxx.rpm | cpio -div|
|--------|--------|


  1. ^ ↩︎

Recommended Posts

Add EPEL Repo for centos
install EPEL repo on centos
Centos: add an IP address
How to add swap on CentOS 7