Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-11-2017, 09:48 AM
|
#1
|
Member
Registered: Mar 2017
Posts: 52
Rep: 
|
Install files from a usb drive
I am trying to install a package from usb drive but am unsure of the correct command for this. The package is as follows----pal-app-12.04.0053-1.i386-fedora.rpm.
|
|
|
04-11-2017, 10:08 AM
|
#3
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by Chrisroot
I am trying to install a package from usb drive but am unsure of the correct command for this. The package is as follows----pal-app-12.04.0053-1.i386-fedora.rpm.
|
Hi Chrisroot ... I gather you're on RedHat, right ? I am unfamiliar with RedHat, but most distros package management utilities have commands to install from an already downloaded package. Perhaps a help query using your package manager will reveal the appropriate option.
For example, in Arch, a command to install from repository would be:
Code:
pacman -S <name of package>
... whereas the command to install from an already downloaded package would be:
Code:
pacman -U <name of package file, including full path as needed>
Cheers,
|
|
|
04-11-2017, 10:13 AM
|
#4
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep: 
|
At the moment i am using Fedora 24. I know its an offshoot of Red Hat.
Last edited by Chrisroot; 04-11-2017 at 10:15 AM.
|
|
|
04-11-2017, 10:28 AM
|
#5
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by Chrisroot
At the moment i am using Fedora 24. I know its an offshoot of Red Hat.
|
.. Gotcha .. A quick Google found this at:
https://docs.fedoraproject.org/ro/Fe.../ch02s03.html:
Code:
Using this table as a guide, you can explore the options to the rpm command.
To install or upgrade a package, use the -U command-line option:
rpm -U filename.rpm
For example, to install the mlocate RPM used as an example in this chapter, run
the following command:
rpm -U mlocate-0.22.2-2.i686.rpm
|
|
|
04-11-2017, 10:32 AM
|
#6
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
for a USB Drive it maybe best to mount it or open up a file manager to get the path to it first then issue the commanded needed to install it.
Code:
pacman -S /path/to/<name of package>
|
|
|
04-11-2017, 10:38 AM
|
#7
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
pal-app-12.04.0053-1.i386 : is an "/etc/init.d file" + may be an executable.
Suggest : Unpack the package to inspect the content. May trash your OS.
Installing a downloaded package :
cd Downloads/
# dnf install ./pal-app-12.04.0053-1.i386-fedora.rpm
Quote:
Fedora 24. I know its an offshoot of Red Hat
|
Redhat Enterprise OS, RHEL is based on the Redhat development versions = Fedora.
E.g. RHEL 7 is based on Fedora´s 18, 19, 20 AFAIK.
|
|
|
04-11-2017, 11:29 AM
|
#8
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by BW-userx
for a USB Drive it maybe best to mount it or open up a file manager to get the path to it first then issue the commanded needed to install it. ...
|
Chrisroot .... I was assuming that you have the USB drive mounted, but BW-userx's comment above is obviously appropriate.
|
|
|
04-11-2017, 06:10 PM
|
#9
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,793
|
Quote:
Originally Posted by Chrisroot
I am trying to install a package from usb drive but am unsure of the correct command for this. The package is as follows----pal-app-12.04.0053-1.i386-fedora.rpm.
|
Code:
sudo rpm -ivh <mountpoint_for_usb>/-pal-app-12.04.0053-1.i386-fedora.rpm
If there are unsatisfied dependencies, the easiest way to deal with the situation might be to use dnf to install yum
Code:
sudo dnf install yum
and then use yum to install your rpm file along with its dependencies
Code:
sudo yum localinstall <mountpoint_for_usb>/pal-app-12.04.0053-1.i386-fedora.rpm
|
|
|
04-11-2017, 10:31 PM
|
#10
|
Member
Registered: Jul 2013
Posts: 749
Rep: 
|
I recommend you use dnf to install your downloaded rpm. I also recommend you copy the rpm to your hard drive first, then from the directory holding the rpm simply
Installing this way will ensure any dependencies are resolved (or at least identified), and will let the dnf database and history know the package is installed.
Before Fedora 22/23, the package manager for Fedora was yum, replaced recently with dnf.
[EDIT]Oops! I just read rock doctor's post and see the same advice  [/EDIT]
Last edited by Doug G; 04-11-2017 at 10:32 PM.
|
|
1 members found this post helpful.
|
04-12-2017, 07:46 AM
|
#11
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,793
|
Quote:
Originally Posted by Doug G
... Before Fedora 22/23, the package manager for Fedora was yum, replaced recently with dnf.
[EDIT]Oops! I just read rock doctor's post and see the same advice  [/EDIT]
|
Not so recent  . I don't use dnf much, so I hadn't realized it will (and apparently has for some time) let you do a local install
|
|
|
04-12-2017, 01:30 PM
|
#12
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by Chrisroot
I am trying to install a package from usb drive
|
it doesn't matter where you install the package from.
advice: open the usb folder in your file manager, right click an empty area and look for an option like "open this folder in a terminal" - then issue one of the commands suggested above.
|
|
|
04-12-2017, 01:39 PM
|
#13
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by ondoho
it doesn't matter where you install the package from.
advice: open the usb folder in your file manager, right click an empty area and look for an option like "open this folder in a terminal" - then issue one of the commands suggested above.
|
that is so the easy way... come on admit. 
|
|
|
All times are GMT -5. The time now is 12:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|