Ask Your Question
1

how to create local repository for openstack packages

asked 2015-12-06 07:05:22 -0500

br gravatar image

Hi,

some can explain the procedure to create the local repository for openstack kilo version for ubuntu flavor.

Thanks in Advance

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2015-12-07 09:36:11 -0500

pl_rock gravatar image

Server side configuration :

there is many method to create local repository . here i am using apache2.

sudo apt-get install apache2
sudo apt-get install apt-mirror

create any directory

sudo mkdir /repo

Now, open the file /etc/apt/mirror.list file using command

sudo vi /etc/apt/mirror.list

add

set base_path /repo

and

 deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/kilo main

remove other repository . final /etc/apt/mirror.list will look like:

    ############# config ##################
    #
    # set base_path    /var/spool/apt-mirror
     set base_path /repo
    # set mirror_path  $base_path/mirror
    # set skel_path    $base_path/skel
    # set var_path     $base_path/var
    # set cleanscript $var_path/clean.sh
    # set defaultarch  <running host architecture>
    # set postmirror_script $var_path/postmirror.sh
    # set run_postmirror 0
    set nthreads     20
    set _tilde 0
    #
    ############# end config ##############
 deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/kilo main

then run command:

sudo apt-mirror

it will download all packages to /repo directory. after download completion go to /var/www/html/ and create symbolic link here :

sudo ln -s /repo/mirror/ubuntu-cloud.archive.canonical.com/ubuntu  ubuntu

client side configuration :

open /etc/apt/sources.list

sudo vi /etc/apt/sources.list

add line

deb http://yoursystemIP/ubuntu trusty-updates/kilo main

save it and update

sudo apt-get update

now enjoy local repository

sudo apt-get install PackageName

Note: check your symbolic link is correct.

edit flag offensive delete link more
0

answered 2015-12-06 22:01:19 -0500

Bipin gravatar image

Hello,

This Linkwill help you to setup a local repo for openstack. Make sure, you replace with openstack Kilo in the script. "deb http://ubuntu-cloud.archive.canonical... "trusty-updates/kilo main"

Regards

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-12-06 07:05:22 -0500

Seen: 1,710 times

Last updated: Dec 07 '15