LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-11-2017, 09:48 AM   #1
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Rep: Reputation: Disabled
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.
 
Old 04-11-2017, 10:02 AM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,692
Blog Entries: 26

Rep: Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388
Chrisroot,

I assume that you are using Ubuntu or Mint and already have seen this thread?

https://ubuntuforums.org/showthread.php?t=1729232

Only Windows, Fedora and openSUSE drivers are available:
https://www.tripplite.com/poweralert
 
Old 04-11-2017, 10:08 AM   #3
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,363

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Chrisroot View Post
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,
 
Old 04-11-2017, 10:13 AM   #4
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-11-2017, 10:28 AM   #5
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,363

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Chrisroot View Post
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
 
Old 04-11-2017, 10:32 AM   #6
BW-userx
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,242

Rep: Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204
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>
 
Old 04-11-2017, 10:38 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
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.
 
Old 04-11-2017, 11:29 AM   #8
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,363

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by BW-userx View Post
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.
 
Old 04-11-2017, 06:10 PM   #9
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,789

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Quote:
Originally Posted by Chrisroot View Post
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
 
Old 04-11-2017, 10:31 PM   #10
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
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

Quote:
dnf install <rpmname>
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.
Old 04-12-2017, 07:46 AM   #11
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,789

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Quote:
Originally Posted by Doug G View Post
... 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
 
Old 04-12-2017, 01:30 PM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
Quote:
Originally Posted by Chrisroot View Post
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.
 
Old 04-12-2017, 01:39 PM   #13
BW-userx
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,242

Rep: Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204
Quote:
Originally Posted by ondoho View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Linux to SATA drive but GRUB2 on to USB thumb drive Quija Linux - General 2 11-22-2011 06:40 PM
Install slackware on a USB drive without creating an USB livecd Barx Slackware 4 06-28-2010 01:31 PM
How to install to a USB flash drive as if it was a USB HDD? ddalley Linux - Software 15 09-16-2009 08:14 PM
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 04:56 PM
Got usb drive, what are these files? M$ISBS Linux - Hardware 26 04-24-2005 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration