Skip to content

Instantly share code, notes, and snippets.

@JosefJezek
Last active December 17, 2015 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosefJezek/5546730 to your computer and use it in GitHub Desktop.
Save JosefJezek/5546730 to your computer and use it in GitHub Desktop.
How to CentOS / Red Hat

How to CentOS / Red Hat Gittip

Author: Josef Jezek

Mount Share

  • yum install cifs-utils

Packages

Install Epel Repo for CentOS 6

rpm -Uvh http://ftp.fi.muni.cz/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://ftp.fi.muni.cz/pub/linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm

Delete package without dependencies

rpm -e --nodeps mysql-libs

PHP

Timezone

rm /etc/localtime
ln -s /usr/share/zoneinfo/Europe/Prague /etc/localtime

Repository

wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
rpm --import RPM-GPG-KEY-CentOS-5

[base]
name=Base
baseurl=http://mirror.centos.org/centos-5/5.10/os/$basearch/
gpgcheck=1
enabled=1
wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-5
rpm --import RPM-GPG-KEY-EPEL-5 
rm -f RPM-GPG-KEY-EPEL-5
mkdir /etc/yum.repos.d
vi /etc/yum.repos.d/epel.repo

[epel]
name=EPEL RPM Repository for Red Hat Enterprise Linux
baseurl=http://ftp.riken.jp/Linux/fedora/epel/5/$basearch/
gpgcheck=1
enabled=0

yum --enablerepo=epel install [package]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment