Off-Line Custom Repository Archive - Ubuntu Forums

Embed Size (px)

Citation preview

  • 7/31/2019 Off-Line Custom Repository Archive - Ubuntu Forums

    1/3

    orestis82

    poofyhairguy

    Marauder1

    orestis82

    az

    Marauder1

    Marauder1

    PDA

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

    View Full Version : Off-line custom repository

    December 7th, 2004, 04:34 PM

    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 ?

    December 7th, 2004, 05:27 PM

    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.

    December 7th, 2004, 08:13 PM

    I think it could be done.Im not sure but if you grab the files and then copy them to the synapticcache 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 !!!

    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...

    December 8th, 2004, 10:15 AM

    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.

    Copy them to your /var/cache/apt/archivesordpkg-scanpackages . /dev/null >Packagesand your directory is a reposiroty you may add to your sources.list

    December 8th, 2004, 10:19 AM

    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 y our 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:)

    December 8th, 2004, 10:26 AM

    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.

    Copy them to your /var/cache/apt/archives

    ordpkg-scanpackages . /dev/null >Packagesand 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>

    Off-line custom repository [Archive] - Ubuntu Forums 5/2/2012

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

    http://ubuntuforums.org/showthread.php?t=7455http://ubuntuforums.org/archive/index.phphttp://ubuntuforums.org/archive/index.php/f-130.htmlhttp://ubuntuforums.org/archive/index.php/f-125.htmlhttp://ubuntuforums.org/archive/index.php/f-310.htmlhttp://ubuntuforums.org/showthread.php?t=7455http://ubuntuforums.org/archive/index.php/t-7455.html?pda=1http://ubuntuforums.org/archive/index.php/f-41.htmlhttp://ubuntuforums.org/archive/index.php/f-310.htmlhttp://ubuntuforums.org/archive/index.php/f-125.htmlhttp://ubuntuforums.org/archive/index.php/f-130.htmlhttp://ubuntuforums.org/archive/index.php
  • 7/31/2019 Off-Line Custom Repository Archive - Ubuntu Forums

    2/3

    orestis82

    orestis82

    orestis82

    paradox

    jdong

    paradox

    paul cooke

    RomanoGiannetti

    gpwil1

    December 8th, 2004, 06:24 PM

    thank you, I'll try that tommorrow.

    December 9th, 2004, 01:15 PM

    Hurray, it worked.I created a directory ubuntu-repo in my home directory.

    cd ubuntu-repocreate this path: (with mkdir)/dists /warty/ma in/binary-i386

    Copy all downloaded packages there:then, from the ubuntu-repo folder:

    dpkg-scanpackages dists/warty/main/binary-i386 /dev/null >Packagesthen:cp Packages dists/warty/main/binary-i386/Load Synaptic, add:

    create repository:file:///home/orestis/ubuntu-repo/ (orestis is my user)distribution: wartysection: main

    press New! not ok.

    disable all other repositories.Reload, mark all upgrades, apply. Done!

    December 13th, 2004, 11:16 AM

    To all mods: C an we please move this to the HOW-TO ? Many people are a sking questions like this. If necessary I can post a more contained solution inthe HOW-To.

    December 19th, 2004, 08:14 AM

    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

    December 21st, 2004, 06:21 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 runas pinco can inject apps onto your Ubuntu system.

    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 runas 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!

    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 runas 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 toedit their sources list appropriately)

    :)

    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!

    November 26th, 2008, 12:01 AM

    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 listsudo apt-get updatesudo apt-get -f install

    #next print selected packages to filesudo apt-get install firefox gsynaptics gparted wine unrar-free vlc nmap openssh-server openssh-client gimp samba traceroute mdf2iso --print-uris >file

    Off-line custom repository [Archive] - Ubuntu Forums 5/2/2012

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

  • 7/31/2019 Off-Line Custom Repository Archive - Ubuntu Forums

    3/3

    kameleontti

    #strip out html links for packagesegrep -o -e "(ht|f)tp://[^\']+" file > file2

    #download packages either in windows or use the following:rm filemv file2 /var/cache/apt/archives/cd /var/cache/apt/archives/wget `cat file2`

    sudo dpkg -i -R /var/cache/apt/archives/

    July 22nd, 2010, 04:38 AM

    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 touser 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 likeupdate 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 toestablish internet connection and needs that driver package from web repository - or by some strange reason can't install it from install cd source. Andif 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 workswith basic essential things like establishing internet connection.

    Sometimes feels like ubuntu is more like alienware than for humans - unfortunately.

    vBulletin v3.8.7, Copyright 2000-2012, vBulletin Solutions, Inc.

    Off-line custom repository [Archive] - Ubuntu Forums 5/2/2012

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