Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Does command 'apt-get -d update' downloads .deb packages?

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
anurag
Posts: 5
Joined: 2012-08-18 04:52

Does command 'apt-get -d update' downloads .deb packages?

#1 Post by anurag »

To download .deb packages I have pointed /etc/apt/sources.list to my repository on other Ubuntu machine. Does command 'apt-get -d update' downloads .deb packages to '/var/cache/apt/archives'?

Thanks.

User avatar
62chevy
Posts: 1589
Joined: 2009-10-25 01:09
Location: West Virginia

Re: Does command 'apt-get -d update' downloads .deb packages

#2 Post by 62chevy »

DESCRIPTION
apt-get is the command-line tool for handling packages, and may be considered the user's "back-end" to other tools using the APT library. Several
"front-end" interfaces exist, such as dselect(1), aptitude(8), synaptic(8) and wajig(1).

Unless the -h, or --help option is given, one of the commands below must be present.

update
update is used to resynchronize the package index files from their sources. The indexes of available packages are fetched from the location(s)
specified in /etc/apt/sources.list. For example, when using a Debian archive, this command retrieves and scans the Packages.gz files, so that
information about new and updated packages is available. An update should always be performed before an upgrade or dist-upgrade. Please be
aware that the overall progress meter will be incorrect as the size of the package files cannot be known in advance.

Code: Select all

man apt-get
Debian Buster

adenukolnis
Posts: 459
Joined: 2012-02-24 18:36

Re: Does command 'apt-get -d update' downloads .deb packages

#3 Post by adenukolnis »

apt-get update simply updates the package lists with packages that are available. It does not download any deb packages.

User avatar
62chevy
Posts: 1589
Joined: 2009-10-25 01:09
Location: West Virginia

Re: Does command 'apt-get -d update' downloads .deb packages

#4 Post by 62chevy »

adenukolnis wrote:apt-get update simply updates the package lists with packages that are available. It does not download any deb packages.

Correct after running that then you need ' apt-get upgrade ' or ' apt-get dist-upgrade '

Code: Select all

man apt-get
Run the above man page and have all your question answered.
Debian Buster

User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Re: Does command 'apt-get -d update' downloads .deb packages

#5 Post by golinux »

62chevy wrote:

Code: Select all

man apt-get
Run the above man page and have all your question answered.
Teach a man to fish . . . yada, yada . . .
May the FORK be with you!

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Does command 'apt-get -d update' downloads .deb packages

#6 Post by nadir »

Lots of wisdom to be found in the answers, but, oh my, none of it answers what was asked for.

Code: Select all

apt-get install -d mousepad
assuming mousepad is the package one wants to download.

And the man page you all love to quote.
-d, --download-only
Download only; package files are only retrieved, not unpacked or installed. Configuration
Item: APT::Get::Download-Only.
Makes me feel like a genius, surrounded by idiots. Once again.
I mean, come'on. A dude asks something, and the man-page is given as one part of the answer, the other part is wrong (and it is written in the man-page).
That is funny. Or sad, depends on the character (char id[] = "clown"; or char id[] = "misantroph";).

If you give the man-page as the answer, at least read it yourself.

I yet have to read a post by golinux which is not chat, btw.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

adenukolnis
Posts: 459
Joined: 2012-02-24 18:36

Re: Does command 'apt-get -d update' downloads .deb packages

#7 Post by adenukolnis »

nadir wrote:Lots of wisdom to be found in the answers, but, oh my, none of it answers what was asked for.

Code: Select all

apt-get install -d mousepad
assuming mousepad is the package one wants to download.
I thought the question was Does command 'apt-get -d update' downloads .deb packages to '/var/cache/apt/archives'?

To which the answer is simply a resounding NO.

I don't see anything about any certain package at all.

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Does command 'apt-get -d update' downloads .deb packages

#8 Post by nadir »

In the OP it is said: "to download packages". For unknown reasons that makes me thing that he wants to download packages. But perhaps its a she. And it doesn't matter much. But if someone who doesn't understand synaptic after 6+ years of debian based distros speaks of "fish"... well: that is funny.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

adenukolnis
Posts: 459
Joined: 2012-02-24 18:36

Re: Does command 'apt-get -d update' downloads .deb packages

#9 Post by adenukolnis »

I guess the poster needs to clarify....they done confused me.

anurag
Posts: 5
Joined: 2012-08-18 04:52

Re: Does command 'apt-get -d update' downloads .deb packages

#10 Post by anurag »

Thanks all for your replies & my sincere apologies if the question and its description is confusing.

However nadir got exactly what I wanted. I want to download .deb packages from my personal repository. And now I have got the answer is 'apt-get -d update' is NOT the command to download .deb packages from my repository but the command 'apt-get install -d mousepad' is, assuming mousepad is the package one wants to download.

Now I have few questions...

1. If I want to download multiple packages from my repository, which command to use? Is 'apt-get install -d *' will do the needful to download all .deb files from my repository?

2. When I enter command 'apt-get install -d xll.deb' I get following:

Code: Select all

anurag:~# apt-get install -d xll.deb 
Running /usr/bin/apt-get install -d xll.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package xll.deb
E: Couldn't find any package by regex 'xll.deb'
anurag:~#
Obviously in the package list it seems that 'xll.deb' is not there. Whats wrong here?

3. Where is the location of 'package lists' to check if certain package is there or not?

Here I would like to highlight that the .deb packages I want to download are from my personal repository and not from Debian repository.

BTW nadir I am not she but HE. :)

Thanks.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Does command 'apt-get -d update' downloads .deb packages

#11 Post by phenest »

anurag wrote:3. Where is the location of 'package lists' to check if certain package is there or not?

Code: Select all

apt-cache search
Again, look at the man pages for usage.
anurag wrote:Here I would like to highlight that the .deb packages I want to download are from my personal repository and not from Debian repository.
For that, you need pinning.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

User avatar
62chevy
Posts: 1589
Joined: 2009-10-25 01:09
Location: West Virginia

Re: Does command 'apt-get -d update' downloads .deb packages

#12 Post by 62chevy »

nadir wrote: If you give the man-page as the answer, at least read it yourself.

You missed one thing this is the second time the OP asked this question not that is a problem, just wanted to make sure he understood what ' apt-get update ' did and when to use the -d --download-only option. From his last post looks like he understands now so all is good.
Debian Buster

emariz
Posts: 2901
Joined: 2008-10-17 07:59

Re: Does command 'apt-get -d update' downloads .deb packages

#13 Post by emariz »

Why exactly do you want to download those Debian packages without installing them? Do you want to create a personal repository from where other computers would be updated, to save bandwidth? Will this be a permanent procedure or just a one-time one? The thing is that if these packages are not installed on the "repository" machine, you will have to check the development change logs for new versions of these packages.

It is simpler to install all the required packages on the "repository" machine and then use its directory /var/cache/apt/archives/ as the source for the other machines. Every once in a while, and provided that you did not change your main sources, you could tell Aptitude to delete from the cache the packages that no longer exist on the servers, which deletes old versions of the downloaded packages.

adenukolnis
Posts: 459
Joined: 2012-02-24 18:36

Re: Does command 'apt-get -d update' downloads .deb packages

#14 Post by adenukolnis »

Maybe more important...

Why exactly are you wanting to do? What are you trying to accomplish overall?

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Does command 'apt-get -d update' downloads .deb packages

#15 Post by phenest »

adenukolnis wrote:Maybe more important...

Why exactly are you wanting to do? What are you trying to accomplish overall?
This is just a continuation of their other thread. They are trying to do something that they haven't researched first.
emariz wrote:Why exactly do you want to download those Debian packages without installing them?
Testing purposes? They are trying to build a Debian repository.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

Post Reply