The default source software of centos is not very complete, and EPEL source needs to be added most of the time.
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
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
$ 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
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
yum groupinstall "Development Tools"
http://wiki.centos.org/AdditionalResources/Repositories/SCL
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
[ RHEL5]
yum -y install yum-downloadonly
yum install mongodb-org --downloadonly
[ RHEL6]
yum install yum-plugin-downloadonly
yum install --downloadonly --downloaddir=. mongodb-org
yum install yum-utils
yumdownloader <package>
yumdownloader <package>--resolve
http://elrepo.org/tiki/kernel-ml
http://elrepo.org/tiki/tiki-index.php
http://elrepo.org/linux/kernel/
http://mirrors.sohu.com/centos/6.6/xen4/x86_64/Packages/
https://repo.mongodb.org/yum/redhat
http://mirrors.163.com/.help/centos.html
1 | rpm -ivh --replacepkgs xxx.rpm |
---|
12 | rpm -qp --queryformat "%{defaultprefix}\n" |
---|
12 | rpm -ql |
---|
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|
|--------|--------|
^ ↩︎