You can use apt-config dump to print the config to the screen. The entry you want is Dir::Cache. The values build up on their parent entries.
So you need to look at Dir to get context for the value of Dir::Cache. It's also possible to query individual entries. I didnt look into how to do that though. Add a comment. Active Oldest Votes. Improve this answer. Oooh, beat me by 26 seconds : — Naftuli Kay. That's why I have twice as much reputation ;-P — turbo. Oooooohhhh, burrrrn. You can even install squid-deb-proxy on the proxy server and squid-deb-proxy-client on others; this will make the proxy detection work transparently using Avahi , no client-side configuration required.
As a bonus, if the proxy server is not found on the local network, the client will connect to the repositories directly making this suitable even for laptops. I second the use of Squid-deb-proxy over Apt-cacher. Naftuli Kay Naftuli Kay 3, 5 5 gold badges 33 33 silver badges 46 46 bronze badges.
Lorenz Keel 3, 4 4 gold badges 18 18 silver badges 31 31 bronze badges. Mark Williamson Mark Williamson 11 1 1 bronze badge. These commands are simple to use and easy to remember. Once you have mastered the use of each command, you can manage all your packages with ease and confidence. Introduction Every Linux user knows how critical apt-get commands are.
Was this article helpful? Sofija Simic. Alongside her educational background in teaching and writing, she has had a lifelong passion for information technology. She is committed to unscrambling confusing IT concepts and streamlining intricate software installations. Next you should read. Security SysAdmin. The chown command changes user ownership of a file, directory, or link in Linux. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Is there an apt command to download a deb file from the repositories to the current directory? Ask Question. Asked 10 years, 8 months ago. Active 2 years, 2 months ago. Viewed 97k times. Currently, I am running the next command to retrieve the source code: apt-get source [package-name] The downside is, this file is often much bigger than the binary package and does not reflect the installation tree.
Improve this question. Lekensteyn Lekensteyn k 61 61 gold badges silver badges bronze badges. You can use debget from the package debian-goodies. Add a comment. Active Oldest Votes. Improve this answer. Kees Cook Kees Cook Excellent, this is what I'm looking for. Update: from Natty apt version 0. The --print-urls option is still there — kumarharsh. PeterMortensen, nope it does not.
Alternatively there is always packages. There are a least these apt-get extension packages that can help: apt-offline - offline apt package manager apt-zip - Update a non-networked computer using apt and removable media This is specifically for the case of wanting to download where you have network access but to install on another machine where you do not. Otherwise, the --download-only option to apt-get is your friend: -d, --download-only Download only; package files are only retrieved, not unpacked or installed.
Dirk Eddelbuettel Dirk Eddelbuettel k 54 54 gold badges silver badges bronze badges. It avoids problems faced by apt-get when the package is already installed — biocyberman. It's simpler than any of the other suggested answers, but it's easy to miss since it's just a comment.
BrooksMoses: I can't do that anymore, the question is closed. Show 5 more comments. Alfonso Vila Alfonso Vila 3 3 silver badges 2 2 bronze badges. Was searching for this information for almost an hour now. On This doesn't appear to download anything if the package is already up-to-date on the system.
0コメント