#Creating a Local apt Repository tested on Ubuntu 12.04
#Most people may needed to install same packages in
#bunch of machines.Or to install packages where internet
#is not available.So we gonna create local deb repository.
#I have gone through lot of pages of internet get this work(but verysimple).
#whenever you install packages they are cached in /var/apt/cache.
#/new/folder refers the path to new folder you created.
#create a new folder copy all debs from /var/apt/cache to /new/folder
#Any other packages you wish to add should be copied to /new/folder
#cd into /new/folder

apt-ftparchive packages ./ | gzip > Packages.gz
apt-ftparchive release

#before executing these two commands confirem yourself u have pgp key.or
#create it in keyring and export publickey.asc in /new/folder

gpg --clearsign -o InRelease Release
gpg -abs -o Release.gpg Release

#save the following bash script in /new/folder and execute it with root 
privileges.
http://pastebin.com/SPD05bdJ
#It gives local repository the first preference.
#Please do it with care.I wont be responsible if bad thing happens.
#references google 'local ubuntu repository',man apt-ftparchive,man 
apt-secure,
man sources.list, correct me If i am wrong.
Regards,
Aravindhan.K
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to