How to download packages without using browser linux






















This question is worded in a way that appears to refer to an individual package. A squid caching proxy is one of the simplest ways to do this. Spooler Spooler 1 1 silver badge 6 6 bronze badges. Martian Martian 9 9 bronze badges. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Linked 1. Related 3. Create a script to download or use the list for batch download in some download managers.

There used to be an easier way for this when Synaptic Package Manager was a default application in Ubuntu. Finally in the target system, you can install the packages with dpkg or using any other way. If you have no connection to internet whatsoever and have not got anyone near where you can connect to the internet there is an option not mentioned yet: have someone send the source files via the regular post. The same way you could ask an on-line friend to send you the DEB files or even the source files for a package like VLC to you.

Though it might be worth it to have someone send a complete DVD with all packages. That way you can install it from that DVD. After browsing the answers on here: How can I install software or packages without Internet offline? Borja the most useful.

Anyway, here are some instructions for complete newbies. I hope that you will find them useful. Synaptics: File - Add downloaded packages Alternatively, you can also just double click the files. That will open the Ubuntu Software Center.

Once software center is loaded, press the install button. Repeat this until all the files in the folder are installed. It avoids reinstallation of packages that are already installed. For a system that will always be kept offline, it is usually best to use one of the robust offline package management methods presented in some of the other answers.

This because they facilitate keeping already-installed packages up to date, rather than merely installing a handful of packages one time. However, for isolated cases where you just want to quickly install packages on a system that doesn't have an Internet connection and you have the ability to download them on another machine and bring them over , you can do so.

The main complication is determining what you need, since a package often has other packages it depends on, and which must therefore be installed before, or at the same time as, the package is installed. I emphasize that this method should not be used long-term as an alternative to something that at least facilitates automatically determining and installing needed security updates.

Never connecting to a network reduces the potential for an attack considerably, but some security bugs can be exploited via data from any source.

While this method may look complex, it usually only takes a few minutes. For packages with a large number of dependencies, it may take longer. For installing metapackages that pull in a very large number of dependencies e.

You can simulate the installation to determine which other packages are needed to satisfy the package's dependencies. Passing the -s flag to apt-get before you specify any action does this. I've omitted sudo , since this is just a simulation, so root privileges aren't needed. Going by the results of a simulation is usually better than simply looking up a package's dependencies or assuming that what you need is the same as the above , because:.

Once you know what packages you need, you can download them. I suggest using Launchpad for this, because the downloads are SSL-encrypted, which helps prevent file corruption. Then scroll down to the codename of your Ubuntu release.

You're running Codenames for all Ubuntu releases are listed on the releases wiki page. Click the rightward-pointing triangle to view package downloads for it. For some packages you may be able to expand lists of downloads from more than one pocket.

You may see:. Generally you'll want packages in security or updates if they exist, and otherwise packages in release. Once you expand the list of packages, find the. The most common architectures are:. If this system was never connected to the Internet, then this will probably be the case when all the packages you retrieved were from the release pocket. Regardless of whether or not the system was ever connected to the Internet, this will also almost always be the case if no packages in any other pockets were shown on Launchpad.

Essentially the only situation it won't is if you installed an alpha or beta system and never updated it. In cases where that doesn't work or you expect it won't, install the packages by putting them in an otherwise empty folder and running:. Or you can name the packages individually. This example supposes the packages are in the current directory i. Unless the number of packages being installed is very small and you know the precise order in which they need to be installed for dependencies to be satisfied, it's considerably more efficient to use those methods than to manually install each package individually.

I suggest to customize Live CDs and install them. Another possibility is to use remastersys. This tool allows you to make an iso image from your own system and after creating a bootable usb stick via unetbootin you can install a customized system to as many computers you want. I have a couple of simple suggestions.

You can go to the library. Look in the computer section for the operating system that you want, some of the books have DVD's inside of them. Also, if you want the most up to date operating system, I would reccomend this website where you can purchase a DVD for a nominal fee.

This question is a bit old so an answer at this time may be redundant, but perhaps you could also try using dpkg-offline. Install bzr, then:. Assuming you want to install git on an Ubuntu It should also work with amd64, i and armhf images regardless of the host architecture. Some packages are installed on the install usb-stick. I uninstalled network-manager and want to install it again.

Thus I got the stick I installed the operating system from Lubuntu Note: This might not be the answer to the question above but to the question I had when looking up this one.

Ubuntu Community Ask! 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. How can I install software or packages without Internet offline? Ask Question. Forgot your password? Get help. Password recovery. Topic Desktop News. Reasons could include: A package that is not found in any repository A package developed in-house You need to install a package with custom dependencies or options When you do have to install from source, there are certain things you will need to know.

First things first Installing from source used to be very common and also quite simple. These two packages can be installed with the command: sudo apt-get install build-essential build-dep For the likes of Fedora, a similar installation would be: sudo yum install yum-utils The above command would install the yum-builddep package. Installing from source with build-dep One way to install from source, but avoid the dependency nightmare, is to first work with the build-dep tool.

This is taken care of with the command: sudo apt-get build-dep audacity Allow that command to finish. The next step is to download the source package with the command: sudo apt-get source audacity In your current working directory, you should see a new directory called audacity-XXX where XXX is the release number.

If the installation fails, you might have to revert to using the dpkg tool like so: sudo dpkg-buildpackage -b -uc -us The options above are as follows: b — build binary uc — do not sign the. The magic of configure That configure command does have some magic hidden within.

At this point, run the following commands to build the player from source: cd bin cmake.. In the case of Clementine, you could always pick up the dependencies with the command: sudo apt-get build-dep clementine And there you go That, my friends, is your introduction to installing from source. Package software and data with self-compressed scripts. How to customize VM and cloud images with guestfish.

All rights reserved. It can't download installed packages. I installed createrepo in dcoker images centos: 7. The other methods yumdownloader and yum install --downloadonly also work. Is it possible to yum update but against previously downloaded packages only? Example: I make the list from. Then after one day mabye I need to update but strictly with previously downloaded packages not the new one? Resolution There are two ways to download a package without installing it. One is using the "downloadonly" plugin for yum, the other is using "yumdownloader" utility.

Use "yum groupinfo" to identify packages within a specific group. If only the package name is specified, the latest available package is downloaded such as sshd.

Otherwise, you can specify the full package name and version such as httpd You still need to re-download the repodata if the repodata expires before you re-use the cache. By default it takes two hours to expire. Yumdownloader If downloading a installed package, "yumdownloader" is useful. Be sure to add --resolve if you need to download dependencies.

Log in to comment. DC Community Member 25 points. David Charlap. BH Red Hat Pro points. Brad Hubbard. Thanks for your feedback David. Thank you for the info.



0コメント

  • 1000 / 1000