Simple way to update all packages after a fresh install with no network?
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Simple way to update all packages after a fresh install with no network?
I've been kind of spoiled by Slackware, where updating an installation without networking is just a matter of storing all the updated packages somewhere (directory, CD, USB, etc.) and doing a:
Code:
upgradepkg *.tgz
I'm trying to figure out how to achieve similar simplicity on Ubuntu (specifically, Ubuntu 8.10). I know how to update the packages on the live CD itself (and have done it several times), but in this particular case I need to install using the unedited, official CD.
I'm currently looking at this (and will set up a VirtualBox image to try it out), but it seems to me like the actual packages are never even mentioned in the article, only the meta-data. I need to be able to do an apt-get update/upgrade on this box and have it use the updated packages which I will have stored on a mounted filesystem. Any help with this would be greatly appreciated.
Yeah, I guess you're right. Will the end result be equivalent? I've only used DPKG to do individual package installs, never for a crapload of packages such as this. I've got a fresh install going in VirtualBox. Right now I've got this running on it:
Code:
sudo apt-get --download-only dist-upgrade
I'm thinking this will give me all the packages I need in /var/cache/apt/ for the next step, right?
After the command above, I took all the .deb files from /var/cache/apt/archives and did a:
Code:
sudo dpkg -i *.deb
When the smoke cleared, everything seemed in order, except for a few broken dependencies (one was libc6 and the rest were OpenOffice.org-related). I took care of those with a:
Code:
sudo apt-get -f upgrade
They were fixed from the cache (apt-get didn't download anything), so I should be good when I do this on the real system. I'm gonna do a few more tests in VirtualBox to make sure everything is fine, and if so then I'm all set to do this for real.
Thanks for the tip, acid_kewpie. I would have wasted a lot of time if you hadn't nudged me in the right direction. Doing this with DPKG is kinda cool, felt like I was on Slackware for a minute. Of course, I wouldn't have had these broken dependencies on Slackware!
It went great, "the user is pleased and there exists harmony in the world". I'm just posting a note to say that I should have known I wouldn't be able to do a "sudo apt-get -f upgrade" at the location, since there was no Internet to first do the "sudo apt-get update". So I instead re-did a "dpkg -i" on the packages which were reported as broken and then it was all good.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.