Download ubuntu packages now  install all later

George R. Kasica
George R. Kasica used Ask the Experts™
I'm looking to use apt-get for Ubuntu and yum for Centos to do the following as root:

1) Ubuntu: apt-get update ; apt-get -d dist-upgrade
to just download the update items for later install

2) How do I install the previously downloaded files at a different time? I was thinking apt-get -f install but can't tell if t will get all the updates. - my 2 Ubuntu systems are both up to date so I can't test this yet

3) yum for CentOS doesn't seem to have a download only option. This part of the question is not as critical.

Thanks in advance
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fractional CTO
Distinguished Expert 2018
1) Your commands work as follows...

apt-get update - updates local package list from all repositories currently setup on machine.

apt-get dist-upgrade - super charged version of the upgrade directive. Usually both upgrade + dist-upgrade accomplish the same task. On rare occasions dist-upgrade can fix minor problems upgrade can't handle. Also on rare occasions dist-upgrade can break the packaging system.

I use upgrade + then use aptitude upgrade (rather than apt-get dist-upgrade) to work around minor install problems.

This tends to save time as aptitude upgrade, so far, has never broken the packaging system for me.

2) What you're asking... I'm missing the point of what you're trying to accomplish...

I guess you could somehow try downloading a .deb package somewhere, then somehow manage these, destroying them when they're outdated + then installing the .deb packages. If you do this, sounds like you're trying to somehow create a new APT packaging system without any of the dependency installation logic.

Seems like a lot of work for no additional function.

Or maybe you're trying to do this which is best done exactly as Ubuntu expect this to be done.

State what you're trying to accomplish with this.

3) There is no yum download only option. If you really must, you can determine what package will come from what repository + then download the .rpm file + save it locally.

And now your back into the exact same problem as trying to do this with the APT system.

You have to build an entirely new package management system to somehow managed these packages + their dependencies.
George R. KasicaEngineering Operations Analyst III


That’s what I was expecting to hear but have to make the VPs happy by at least looking for another answer. We’ve been doing it “live” the last 4 years and now suddenly someone wants Linux to act like Windows. Ugh!!
David FavorFractional CTO
Distinguished Expert 2018

Ah! Management!

Good times...

Good luck!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial