RPM
RPM Site
https://centos.pkgs.org/
http://ftp.riken.jp/Linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/
http://ftp.riken.jp/Linux/dag/redhat/
Centos 7 RPM
https://centos.pkgs.org/7/centos-x86_64/
Centos 6 RPM
https://centos.pkgs.org/6/centos-x86_64/
http://mirror.centos.org/centos/6/os/x86_64/Packages/
-----------Install RPM-----------------------------------------
yum -y install net-tools
systemctl stop firewalld.service
systemctl disable firewalld.service
yum -y install nano wget NetworkManager-tui
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
yum update --security
rpm -U --ignoreos --ignorearch --nodeps remi-release-6.rpm
rpm --nodeps --ignoreos --ignorearch --noscripts --install remi-release-6.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
yum -y install epel-release
yum install yum-utils && yum install yum-priorities
yum -y groupinstall 'Development Tools'
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
----------------------------------------------
yum remove without dependencies
# rpm -e --nodeps dovecot
rpm -U --ignoreos --ignorearch --nodeps
rpm --nodeps --ignoreos --ignorearch --noscripts --install
Adding YUM repository
# vi /etc/yum.repos.d/razorsedge.repo
[RE] name=RazorsEdge RPM Repository baseurl=http://rpm.razorsedge.org/centos-$releasever/RE/ gpgkey=http://rpm.razorsedge.org/RPM-GPG-KEY.RE.txt gpgcheck=1 repo_gpgcheck=1 enabled=0
------------------XXXX-------------------------
re-install a RPM Package using rpm and yum of same version
1. Re-install same version RPM through rpm command.
If you do rpm -Uvh or rpm -ivh, it will not update/reinstall the RPM.
[root@nglinux yum.repos.d]# rpm -Uvh remi-release-6.rpm Preparing... ########################################### [100%] package remi-release-6.9-1.el6.remi.noarch is already installed [root@nglinux yum.repos.d]# rpm -ivf remi-release-6.rpm Preparing packages for installation... package remi-release-6.9-1.el6.remi.noarch is already installed
Now if i add “–force” derivative it will install the RPM forcefully:
[root@nglinux yum.repos.d]# rpm -ivh remi-release-6.rpm --force Preparing packages for installation... remi-release-6.9-1.el6.remi
This is the process of re-installing the RPM using rpm command.
However the recommended way is to do this via YUM.
2. We can achieve this with yum using “reinstall” derivative as seen in below command.
[root@nglinux installcd]# yum reinstall yum Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Reinstall ProcessLoading mirror speeds from cached hostfile * base: centos.excellmedia.net * epel: epel.mirror.net.inResolving Dependencies--> Running transaction check ---> Package yum.noarch 0:3.2.29-81.el6.centos will be reinstalled --> Finished Dependency ResolutionDependencies Resolved=============================================================================================================================================================================================== Package Arch Version Repository Size===============================================================================================================================================================================================Reinstalling: yum noarch 3.2.29-81.el6.centos base 1.0 M Transaction Summary===============================================================================================================================================================================================Reinstall 1 Package(s)Total download size: 1.0 M Installed size: 4.6 M Is this ok [y/N]:
---------------------------------
Install webmin
----------
# cd /opt # wget http://www.webmin.com/jcameron-key.asc
# wget http://www.webmin.com/download/rpm/webmin-current.rpm
---------
wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc
yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect
Edit vi /etc/yum.repos.d/webmin.repo # add the following
----------
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
-------------
yum check-update
yum install webmin -y
chkconfig webmin on
service webmin start
# /etc/init.d/webmin start
# /etc/init.d/webmin stop
# /etc/init.d/webmin restart
# /etc/init.d/webmin status
CentOS/RHEL 7
# systemctl enable webmin
# systemctl start webmin
# /etc/rc.d/init.d/webmin restart
Change/Reset Webmin root Password
Change webmin root account password use following command:
# /usr/libexec/webmin/changepass.pl /etc/webmin root secretaccess
CentOS/RHEL 5/6
# iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
# service iptables save
# /etc/init.d/iptables restart
CentOS/RHEL 7
# firewall-cmd --add-port=10000/tcp
# firewall-cmd --reload
--------------------------------
MariaDB YUM repository
#cd /etc/yum.repos.d
# cp epel.repo MariaDB.repo
# vi MariaDB.repo [ Add this line]
------------------------------------------------------------------------
# MariaDB 10.1 CentOS repository list - created 2016-05-12 07:33 UTC # http://mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
-------------------------------------------------------------
Using the Webmin YUM repository
If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing :
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
You should also fetch and install my GPG key with which the packages are signed, with the commands :
#wget http://www.webmin.com/jcameron-key.asc
#rpm --import jcameron-key.asc
You will now be able to install with the command :
yum install webmin
________________________________
yum fail to update
# yum --disablerepo=\* --enablerepo=base,updates update
Webmin pakage update command
/usr/bin/yum -y install perl-Net-CIDR
-------------------------------------
Shorewall YUM repository
How to setup?
Create new repo file in# vi /etc/yum.repos.d
# vi /etc/yum.repos.d/shorewall.repo
Copy and paste the code
cat shorewall.repo
### Name: Shorewall RPM Repository sysadminguide.net
### URL: http://sysadminguide.net/
[shorewall]
name = RHEL $releasever - Shorewall - sysadminguide.net
baseurl = http://mirror.sysadminguide.net/shorewall
enabled = 1
protect = 0
gpgcheck = 0
Alternatively to directly download the file you can execute:
cd /etc/yum.repos.d/;wget http://mirror.sysadminguide.net/shorewall/shorewall.repo
# yum install shorewall shorewall-core
----------------------------------------------------
Centos 6 RMP-tar
https://dl.fedoraproject.org/pub/epel/6/x86_64/
RPMForge Repository in RHEL/CentOS-6
Download the latest rpmforge-release rpm from
http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/
Download RPM Goole Drive....:
Install rpmforge-release rpm:
# rpm -Uvh rpmforge-release*rpm
Install rpmforge-release rpm package:
# yum install rpmforge-release
-----------------------
Disable RPMForge Repository in RHEL/CentOS 7/6/5/4
To disable RPMForge repository simply open the file /etc/yum.repos.d/rpmforge.repo.
# vi /etc/yum.repos.d/rpmforge.repo
Change “enabled=1” to “enabled=0“. 0 means turn-off and 1 means turn-on.
### Name: RPMforge RPM Repository for RHEL 6 - dag
### URL: http://rpmforge.net/
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
----------------------------------
wget -q -O - http://www.atomicorp.com/installers/atomic | sh yum upgrade php yum -y remove atomic-release*
# php -v
Upgrade PHP version 5.4 to 5.6 on CentOS/RHEL 6/7
For CentOS/RHEL 7:
# rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
For CentOS/RHEL 6:
# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
After installing Webtatic yum repository, you have to remove the old version of php-common package. It will also delete it dependencies packages.
rpm -e --nodeps php-common
yum remove php-common
Now we install PHP 5.5 using following command:
yum -y install php56w-snmp
yum -y install php56w-ldap
yum -y install php56w-imap
yum -y install libc-client
# yum install -y php56w php56w-pear php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring php56w-imap
After installing PHP 5.6, we need to restart Apache service.
# /etc/init.d/httpd restart
# php -v
Install Howto
Download latest webtatic-release rpm from
http://repo.webtatic.com/yum/el7/x86_64/
Install webtatic-release rpm:
# rpm -Uvh webtatic-release*rpm
Install php56w-common rpm package:
# yum --enablerepo=webtatic install php56w-common
http://repo.webtatic.com/yum/el7/x86_64/RPMS/php56w-common-5.6.40-1.w7.x86_64.rpm
#################### Error solved #########################################
Troubleshooting
Package does not match intended download?
yum clean metadata
______________________________________________________________
Disable RPMForge Repository in RHEL/CentOS 7/6/5/4
# vi /etc/yum.repos.d/rpmforge.repo
Change “enabled=1” to “enabled=0“. 0 means turn-off and 1 means turn-on.
### Name: RPMforge RPM Repository for RHEL 6 - dag ### URL: http://rpmforge.net/ [rpmforge] name = RHEL $releasever - RPMforge.net - dag baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 0 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1
---
-----