Page 1 of 1

looking for apps etc from USB

PostPosted: Dec 29th, '17, 11:40
by janus
Hi all. Can anyone give me the command line for retrieving and installing something from a USB drive? As my other computer with Mageia is not connected to the internet and I am trying to set up a network connector, I am getting things such as GCC from the net and downloading to usb. This gets plugged into other computer. I am trying to compile a driver. Any help would be appreciated. Thank you.

Re: looking for apps etc from USB

PostPosted: Dec 29th, '17, 18:36
by maracuja
You could set up the usb memory as a local repository. That way you can use urpmi to solve dependencies directly. There is a description on how to set up a local repository from the command line here: https://wiki.mageia.org/en/URPMI#Copying_CD_or_a_DVD_to_a_home_directory_and_using_the_copy_in_urpmi
It can also be done in the control centre using the GUI.

Another option is to open a console from the appropriate folder and using urpmi to install the packages, but this way dependencies won't be resolved. It is described further down on the same wiki page.

Re: looking for apps etc from USB

PostPosted: Dec 29th, '17, 20:41
by doktor5000
The easiest way is to simply tell urpmi to only download the packages to a specific folder (on your USB stick) and then simply install all of them from the USB stick on the target system, like so:

Code: Select all
urpmi some_package --no-install --download-all /where/to/save/package


But the target system should be pretty close to the system that you download the packages on, otherwise you might need to manually download some dependencies later on that are already installed on the first system.

A part of this is also explained in our software management MAQeia
Also see the linked thread viewtopic.php?f=7&t=6901 and maybe viewtopic.php?f=25&t=10202