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

Tagged:

One thought on “Create Repository Local Ubuntu & Redhat/Centos + downloadonly package rpm/deb

  1. test November 14, 2013 at 5:26 am Reply

    rsync -avz /var/cache/apt/archives/* /home/repo/proxmox-2.3/
    cd /home/repo/proxmox-2.3/
    dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

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: