how to create local yum repository in centos 6.4

CentOS 6.3 installation in VMware Workstation 7.1

local yum repository in centos 6.4

Copy all RPM files /var/www/html/localrepo/RPMS

[root@localhost x86_64]# createrepo ./
bash: createrepo: command not found

cd /var/www/html/localrepo/RPMS

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

[root@localhost x86_64]# yum install createrepo

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base:
* extras:
* updates:
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package createrepo.noarch 0:0.9.9-17.el6 will be installed
–> Processing Dependency: python-deltarpm for package: createrepo-0.9.9-17.el6.noarch
–> Running transaction check
—> Package python-deltarpm.x86_64 0:3.5-0.5.20090913git.el6 will be installed
–> Processing Dependency: deltarpm = 3.5-0.5.20090913git.el6 for package: python-deltarpm-3.5-0.5.20090913git.el6.x86_64
–> Running transaction check
—> Package deltarpm.x86_64 0:3.5-0.5.20090913git.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved================================================================================
Package              Arch        Version                       Repository
createrepo           noarch      0.9.9-17.el6                  base       94 k
Installing for dependencies:
deltarpm             x86_64      3.5-0.5.20090913git.el6       base       71 k
python-deltarpm      x86_64      3.5-0.5.20090913git.el6       base       27 kTransaction Summary
Install       3 Package(s)Total download size: 192 k
Installed size: 518 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): createrepo-0.9.9-17.el6.noarch.rpm                |  94 kB     00:00
(2/3): deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm       |  71 kB     00:00
(3/3): python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rp |  27 kB     00:00
Total                                           127 kB/s | 192 kB     00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : deltarpm-3.5-0.5.20090913git.el6.x86_64                      1/3
Installing : python-deltarpm-3.5-0.5.20090913git.el6.x86_64               2/3
Installing : createrepo-0.9.9-17.el6.noarch                               3/3
Verifying  : python-deltarpm-3.5-0.5.20090913git.el6.x86_64               1/3
Verifying  : createrepo-0.9.9-17.el6.noarch                               2/3
Verifying  : deltarpm-3.5-0.5.20090913git.el6.x86_64                      3/3Installed:
createrepo.noarch 0:0.9.9-17.el6Dependency Installed:
deltarpm.x86_64 0:3.5-0.5.20090913git.el6
python-deltarpm.x86_64 0:3.5-0.5.20090913git.el6Complete!

Go to /etc/yum.repos.d

create cloudstack.repo

name=Apache CloudStack



Leave a Reply

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

You are commenting using your 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