Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After installing Linux, when I installed the above package for the first time, Internet connection was necessary because the package had to download something from the Internet. After the installation had been completed, I disconnected Linux from the Internet and reinstalled the same package. This time the package was installed successfully without Internet connection. It goes to show that the downloads were still on Linux, so the package need not download them again. Where are the downloads on Linux. How can I find them? I want to back them up.
it depends on the tool you used to download. What OS is it? How did you download that file exactly?
My OS is UnionTech OS Desktop Home.
I just double-clicked on the said Debian package, which started downloading.
I downloaded the package by running the following command from Terminal:
Distribution: Ubuntu based stuff for the most part
Posts: 1,174
Rep:
Debian based systems will download files to /var/cache/apt/archive if memory serves me, and then install them from there. This is the same for command line apt usage or any of the various graphical packages.
They stay there until the "apt autoclean" command is run which deletes all the downloads, which some of the graphical tools when they are done.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803
Rep:
Quote:
Originally Posted by Matthew Wai
Where are the downloads on Linux. How can I find them? I want to back them up.
The "~/Downloads" folder is empty.
I'm extrapolating from what I see on one of my RaspPis so your situation may be somewhat different. I see downloaded packages in:
/var/cache/apt/archives
What do you see in that directory?
A brute force search for the package file beginning at '/', ought to find out where it 'lives':
Code:
$ find / -type f -iname package-file-name 2>/dev/null
should show you where it is (the above command redirects the inevitable permissions errors to the bit bucket). It could take a minute or more to complete so... patience.
+1 for find. But doesn't it need the -xdev switch (plus a list of relevant file systems from df), to avoid endlessly traversing /sys, /proc, /dev, /run e.g. ???
I apologize for my stupid mistake.
I did not realize that I had already backed up all the dependencies required by the following package:
net.lutris.lutris_0.5.2-2_amd64.deb
As long as I have already installed all the dependencies, the package need not download anything and thus Internet connection is unnecessary.
In case I have not installed the dependencies, the package has to download them into the following folder: /var/cache/apt/archives/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.