Sudo apt download

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Sudo apt download

Post by Menard »

Hello

I wanted to inform you of this feature because I discovered it by random on the help of apt application and it is exactly what I was looking for... i had even made a topic for it without a solution, I was asking for a way to create an installation file for my applications installed by the repositories ... that is what apt dowload is for
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11184
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Sudo apt download

Post by AZgl1800 »

I just looked at " man apt " and there is no reference all to "download"

I for one, do NOT understand what you are trying to tell us.

IF, 'download' means that all of the repositories can be downloaded into a special folder on my PC, that would be just fine, no Internet Access require to create a fresh install.

Please expand and show exactly how you use this command.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
Pjotr
Level 24
Level 24
Posts: 20135
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Sudo apt download

Post by Pjotr »

Apparently it's a feature of apt. For example (no sudo needed in the command):

Code: Select all

apt download xed
.... should give you the installation package for Xed in your personal folder. Neat.

@Menard: I didn't know about this apt feature; thanks for the notification. :)
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
karlchen
Level 23
Level 23
Posts: 18228
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Sudo apt download

Post by karlchen »

Well, basically apt download <packagename> does the same as apt-get download <packagename>
This can be learned by having a closer look at the apt-get manpage.

Code: Select all

$ man apt-get
[...]
       download
           download will download the given binary package into the current directory.
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
User avatar
Pjotr
Level 24
Level 24
Posts: 20135
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Sudo apt download

Post by Pjotr »

karlchen wrote: Tue May 24, 2022 7:00 am Well, basically apt download <packagename> does the same as apt-get download <packagename>
This can be learned by having a closer look at the apt-get manpage.

Code: Select all

$ man apt-get
[...]
       download
           download will download the given binary package into the current directory.
Well, apt does a better job here than apt-get.... When downloaded with apt-get, the installer package will be owned by root. When apt does this job, you will be the owner (which is better, because it'll usually be downloaded into your home folder). :wink:
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11184
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Sudo apt download

Post by AZgl1800 »

IF,
this has to be done, for each and every package in a Distro.....

that is a ridiculous way to try and do it.

I won't for sure, I will make sure the Internet is live, then do a normal Fresh Install.

at the end of the Day, using APTIK is a far simpler solution.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
Pjotr
Level 24
Level 24
Posts: 20135
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Sudo apt download

Post by Pjotr »

AZgl1800 wrote: Tue May 24, 2022 8:21 am IF,
this has to be done, for each and every package in a Distro.....
That's not the ideal use case, no. But it is nifty when you simply want to get an offline copy of the installer of just one application, for example in order to install it on another computer that has no internet connection.

It's just one of those small tricks that can sometimes come in handy. :)
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Sudo apt download

Post by Menard »

For me the main use is to back up my critical applications, in the current version, in case if an update would break some feature I use or if the application is removed from the repositories
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Sudo apt download

Post by Menard »

AZgl1800 wrote: Tue May 24, 2022 5:57 am I just looked at " man apt " and there is no reference all to "download"

I for one, do NOT understand what you are trying to tell us.

IF, 'download' means that all of the repositories can be downloaded into a special folder on my PC, that would be just fine, no Internet Access require to create a fresh install.

Please expand and show exactly how you use this command.

Code: Select all

$ apt --help
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
Pjotr
Level 24
Level 24
Posts: 20135
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Sudo apt download

Post by Pjotr »

Menard wrote: Tue May 24, 2022 8:40 am For me the main use is to back up my critical applications, in the current version, in case if an update would break some feature I use
Yes, that's also an idea....
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Sudo apt download

Post by Menard »

AZgl1800 wrote: Tue May 24, 2022 8:21 am
at the end of the Day, using APTIK is a far simpler solution.
Sadly I never listen anything about it, I can search this way too, for this other purpose (it is not the present subject)
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
Locked

Return to “Software & Applications”