Sunteți pe pagina 1din 3

Off-line custom repository [Archive] - Ubuntu Forums

5/2/2012

Ubuntu Forums > The Ubuntu Forum C ommunity > Other C ommunity Discussions > Development & Programming > Repositories & Backports > Off-line custom repository

View Full Version : Off-line custom repository


orestis82 Hello there. I have installed Ubuntu on my home machine, which only has dial-up access. I would like to update my installation, however using the dial-up takes forever. I have broadband access at work, and I can burn cds or bring my external HD and get files to it. Is it possible to download packages to my hd and use it as a repository for home ? poofyhairguy Hello there. I have installed Ubuntu on my home machine, which only has dial-up access. I would like to update my installation, however using the dial-up takes forever. I have broadband access at work, and I can burn cds or bring my external HD and get files to it. Is it possible to download packages to my hd and use it as a repository for home ? hmmm. Its certainly possible that you could make a cd source, but it sounds difficult. Marauder1 I think it could be done. Im not sure but if you grab the files and then copy them to the synaptic cache directory on your system it could be done . ( with root access). The cache directory is : /var/cache/apt/archives/ Try it and tell me if it works !!! orestis82

PDA

December 7th, 2004, 04:34 PM

December 7th, 2004, 05:27 PM

December 7th, 2004, 08:13 PM

December 8th, 2004, 08:27 AM

So, where do I grab the packages ? Is there any way I could automatically get them (I don't want to get them one by one...) PS. I'm using windows at work... az man apt-get apt-get upgrade --print-uris > file copy the file to a floppy and use a windows downloading tool (Download accelerator plus? - I dunno) to download all of the files to the harddrive. copy all the files to cd or usb key and bring them home. C opy them to your /var/cache/apt/archives or dpkg-scanpackages . /dev/null >Packages and your directory is a reposiroty you may add to your sources.list Marauder1 You have to do an update and an upgrade with Synaptic. then press the green check to see which packages need an upgrade. but dont go futher. (you will know what to upgrade whitout actually doing it) Grab the names of all the packages you need to download. Then exit Synaptic. Go to your Windows machine and go to this address: http://archive.ubuntulinux.org/ubuntu/pool/ All the packages should be there to download by categories. Hope i'm clear enough O:) Marauder1 man apt-get apt-get upgrade --print-uris > file copy the file to a floppy and use a windows downloading tool (Download accelerator plus? - I dunno) to download all of the files to the harddrive. copy all the files to cd or usb key and bring them home. C opy them to your /var/cache/apt/archives or dpkg-scanpackages . /dev/null >Packages and your directory is a reposiroty you may add to your sources.list Thats a good one azz i was a bit confused how to do it. I knew there was a faster way but my knowlege of apt-get is more GUI !!! Thanks i'll keep that one =D>
http://ubuntuforums.org/archive/index.php/t-7455.html 1/3

December 8th, 2004, 10:15 AM

December 8th, 2004, 10:19 AM

December 8th, 2004, 10:26 AM

Off-line custom repository [Archive] - Ubuntu Forums orestis82

5/2/2012 December 8th, 2004, 06:24 PM

thank you, I'll try that tommorrow. orestis82 Hurray, it worked. I created a directory ubuntu-repo in my home directory. cd ubuntu-repo create this path: (with mkdir) /dists/warty/main/binary-i386 C opy all downloaded packages there: then, from the ubuntu-repo folder: dpkg-scanpackages dists/warty/main/binary-i386 /dev/null >Packages then: cp Packages dists/warty/main/binary-i386/ Load Synaptic, add: create repository: file:///home/orestis/ubuntu-repo/ (orestis is my user) distribution: warty section: main press New! not ok. disable all other repositories. Reload, mark all upgrades, apply. Done! orestis82 December 13th, 2004, 11:16 AM December 9th, 2004, 01:15 PM

To all mods: C an we please move this to the HOW-TO ? Many people are asking questions like this. If necessary I can post a more contained solution in the HOW-To. paradox For me this work: 1) C reate a dir in your home (ex. /home/pinco/Ubuntu-repository) 2) Generate Package file: dpkg-scanpackages . /dev/null > Packages 3) Insert in sources.list the correctly path like this: deb file:/home/pinco/Ubuntu-repository ./ 4) sudo apt-get update :D jdong December 21st, 2004, 06:21 PM December 19th, 2004, 08:14 AM

It's best practice to put such a repository in a system-wide place, like /var/apt/ubuntu, and own it as root. Otherwise, the user pinco and any app run as pinco can inject apps onto your Ubuntu system. paradox December 22nd, 2004, 03:08 PM

It's best practice to put such a repository in a system-wide place, like /var/apt/ubuntu, and own it as root. Otherwise, the user pinco and any app run as pinco can inject apps onto your Ubuntu system. yes, my practice is only one user oriented :D Anyway this work properly still as another situation :D. Yes /var/apt/ubuntu with own root is best solution :D Bye! paul cooke February 2nd, 2005, 02:57 PM

It's best practice to put such a repository in a system-wide place, like /var/apt/ubuntu, and own it as root. Otherwise, the user pinco and any app run as pinco can inject apps onto your Ubuntu system. and if you have several machines on your local network to update, then you should be able to share that directory using NFS or Samba (or whatever) and your other machines should then be able to see it so that you can then set them to use that exported/shared directory as a source (you will have to edit their sources list appropriately) :) RomanoGiannetti June 17th, 2005, 11:40 AM

I know it's a very old thread this one, but I add this to say that I made a page to explain how to do a very similar thing with cross-arch capabilities... http://www.dea.icai.upco.es/romano/linux/ubuntu_and_i.php O:) have a nice day! And thanks for the suggestions of this forum! gpwil1 I found this thread useful for helping me automate this process for other people who wish to do the same. See the following for instructions: #first update the source list sudo apt-get update sudo apt-get -f install #next print selected packages to file sudo apt-get install firefox gsynaptics gparted wine unrar-free vlc nmap openssh-server openssh-client gimp samba traceroute mdf2iso --print-uris > file
http://ubuntuforums.org/archive/index.php/t-7455.html 2/3

November 26th, 2008, 12:01 AM

Off-line custom repository [Archive] - Ubuntu Forums #strip out html links for packages egrep -o -e "(ht|f)tp://[^\']+" file > file2

5/2/2012

#download packages either in windows or use the following: rm file mv file2 /var/cache/apt/archives/ cd /var/cache/apt/archives/ wget `cat file2` sudo dpkg -i -R /var/cache/apt/archives/ kameleontti No wonder that linux / ubuntu isn't more popular :) Why can't community make a graphical utility, included in ubuntu management tools, to make all this? So utility showing official or mirrored repositories of all ubuntu versions, packages and updates there and tool-buttons to copy them locally according to user selections, which ones? Sure would be much much easier to everyone, than scripts and terminal commands and discussions about it. Nerds like remembering commands and entering them in terminal, but majority of ubuntu users would sure like graphical straighforward utility like update manager now in ubuntu tools. Sometimes it is almost impossible to install ubuntu in a machine that needs for example some extra restricted driver for wireless or network to establish internet connection and needs that driver package from web repository - or by some strange reason can't install it from install cd source. And if that is too difficult, one can't install ubuntu nor can get it easily working... and forgets it and continues to use Windows, that more often just works with basic essential things like establishing internet connection. Sometimes feels like ubuntu is more like alienware than for humans - unfortunately. vBulletin v3.8.7, C opyright 2000-2012, vBulletin Solutions, Inc. July 22nd, 2010, 04:38 AM

http://ubuntuforums.org/archive/index.php/t-7455.html

3/3

S-ar putea să vă placă și