3.5 KiB
Sitemap
My cheatsheet
This is my cheatsheet for setting up distribution using rpm. I am more experienced with distributions using dpkg, so I need this a little in the beginning.
Installing Virtualbox guest additions
Start by installing dkms from EPEL.
rpm -i <package downloaded from EPEL link above>
yum install dkms
yum groupinstall "Development Tools"
yum install kernel-devel
Press HOST + D and cd to the mount point and run the Linux Additions installer.
Enabling other repositories
For EPEL follow the first steps for Virtualbox guest additions installing above.
RPMGforge
Download the package and install it with
rpm -i <package>
yum-plugin-priorities
Using multiple 3rd party repositories (EPEL, RPMforge) is dangerous so you must use priorities to be safe.
yum install yum-plugin-priorities
Ensure that it’s enabled by looking at /etc/yum/pluginconf.d/priorities.conf . It should read
[main]
enabled=1
Now the plugin should be working and you must assign priorities.
Edit the following files:
/etc/yum/yum.repos.d/CentOS-Base.repo
/etc/yum/yum.repos.d/epel.repo
/etc/yum/yum.repos.d/epel-testing.repo
/etc/yum/yum.repos.d/rpmforge.repo
and add
priority=X
to end of every section where X is replaced with actual priority.
CentOS wiki suggests the following priorities:
CentOS-Base: everything is priority=1 except contrib priority=2
Third party repositories (EPEL,rpmforge) should b > 10 and other should be more preferred than other. I used
epel 10 rpmforge 11
<noscript>
Please enable JavaScript to view the comments powered by Dis qus.
</html>