looking for apps etc from USB

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

looking for apps etc from USB

Postby janus » Dec 29th, '17, 11:40

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.
janus
 
Posts: 6
Joined: Dec 28th, '17, 21:43

Re: looking for apps etc from USB

Postby maracuja » Dec 29th, '17, 18:36

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.
maracuja
 
Posts: 15
Joined: Mar 21st, '17, 10:39

Re: looking for apps etc from USB

Postby doktor5000 » Dec 29th, '17, 20:41

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron