Tag Archives: download only package rpm/deb on centos / redhat / ubuntu + create repository local RHEL/CENTOS/UBUNTU

Create Repository Local Ubuntu & Redhat/Centos + downloadonly package rpm/deb


RHEL/CENTOS

mkdir /home/repo/centos

yum install yum-downloadonly createrepo

 yum install php* -y –downloadonly –downloaddir=/home/repo/centos

createrepo -v /home/repo/centos

vim /etc/yum.repos.d/centos-local.repo

[centos-local]
name=CentOS-Local
baseurl=file:////home/repo/centos/
gpgcheck=0
enabled=1

save!

yum clean all

yum install php*

UBUNTU/DEBIAN

mkdir /home/repo/ubuntu

apt-get install dpkg-dev

cd /home/repo/ubuntu

apt-get install php5-*  –download-only 

dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

vim /etc/apt/sources.list

deb file:/home/repo/ubuntu ./

apt-get clean all

apt-get update

apt-get install php5*

 

Advertisements
shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: