Credit:https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora
EPEL:
Asterisk: http://www.zultron.com/rpm-repo/
RPMFusion: http://rpmfusion.org/Configuration
Groupinstall Dev Tools on CentOS:
yum groupinstall 'Development Tools'
This is the code for the SA mirros:
[base]
name=CentOS-5 - Base
baseurl=http://centos.mirror.ac.za/5/os/$basearch/
gpgcheck=1
gpgkey=http://centos.mirror.ac.za/RPM-GPG-KEY-CentOS-5
[update]
name=CentOS-5 - Updates
baseurl=http://centos.mirror.ac.za/5/updates/$basearch/
gpgcheck=1
gpgkey=http://centos.mirror.ac.za/RPM-GPG-KEY-CentOS-5
[addons]
name=CentOS-5 - Addons
baseurl=http://centos.mirror.ac.za/5/addons/$basearch/
gpgcheck=1
gpgkey=http://centos.mirror.ac.za/RPM-GPG-KEY-CentOS-5
[extras]
name=CentOS-5 - Extras
baseurl=http://centos.mirror.ac.za/5/extras/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.mirror.ac.za/RPM-GPG-KEY-CentOS-5
[centosplus]
name=CentOS-5 - Plus
baseurl=http://centos.mirror.ac.za/5/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.mirror.ac.za/RPM-GPG-KEY-CentOS-5
[contrib]
name=CentOS-5 - Contrib
baseurl=http://centos.mirror.ac.za/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.mirror.ac.za/RPM-GPG-KEY-CentOS-5
To relace the correct version in vi: Code: Select all :%s5.1/5/g
The following are the commands to install rpmforge:
Download the correct package below and install the package by doing:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.$dist.rf.$arch.rpm
rpm -Uhv rpmforge-release-0.5.1-1.$dist.rf.$arch.rpm
WARNING Substitute the URL in the example with the exact one from below, else it will not work.
This will install the repository for smart, apt and yum. For up2date a manual intervention is required.
Install Additional repo
cd /etc/yum.repos.d/
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
wget http://centos.karan.org/kbsingh-CentOS-Misc.repo
rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
TIP For CentOS Yum users there is a very good document on how to enable RPMforge safely using the Yum priorities plugin
RHEL5 / CentOS-5
i386: http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
x86_64: http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
PPC : http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.ppc.rpm
RHEL4 / CentOS-4
i386: http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el4.rf.i386.rpm
x86_64: http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el4.rf.x86_64.rpm
PPC : http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el4.rf.ppc.rpm
Useful apt-get commands
A collection of useful apt-get commands..
UBUNTU: APT-GET/DPKG REDHAT: SIMILAR RPM COMMAND
------------------------------- -------------------------------------------
To forcably ignore a broken package: edit /var/lib/dpkg/status (maybe back it up first) and remove the package and itś associated lines out. Then try installing your package again as normal and it should not complain about the broken package and install what you want.
Searching for packages: apt-cache search some_string http://rpmfind.com/, yum search <package>
Show Package Info: apt-cache showpkg xxx rpm -qpi /tmp/foo.rpm
Show Package Dependencies: apt-cache depends xxx
Install: apt-get install xxx rpm -ivh /tmp/foo.rpm, yum install -y <package>
Re-Install: apt-get --reinstall install xxx rpm -ivh -force /tmp/foo.rpm
Remove: apt-get remove xxx rpm -e pkgname, yum remove <package>
Remove everything (configs too): apt-get --purge remove xxx
Upgrade: apt-get -u upgrade
Show upgrades: apt-show-versions -u
Show All Installed Packages: dpkg --list rpm -qa
Find package given filename: apt-file search /bin/ping rpm -qf /bin/ping
Find filenames in a package: apt-file list xxx rpm -ql pkgname, rpm -qpl /tmp/foo.rpm
Updating the apt-file cache: apt-file update
*** SOURCE PACKAGES ***
Getting source packages: apt-get source xxx
Build package: apt-get -b source packagename rpm -ba, rpm-build -ba /tmp/foo.rpm
Building Package Dependencies: apt-get build-dep xxx