Download ubuntu packages now install all later

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
George R. KasicaLead Systems AdministratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
George R. KasicaLead Systems AdministratorAuthor Commented:
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 FavorLinux/LXD/WordPress/Hosting SavantCommented:
Ah! Management!

Good times...

Good luck!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.