Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

install software

Status
Not open for further replies.

WebGoat

MIS
Jul 16, 2005
85
US
i want to download a software and want to install in /usr/local directory.

1.where do i save the downloaded software ?

2.from which directory i would run the rpm command for installation ?

 
An RPM package has scripts to tell your system where to put files. Nothing much you can do there. If you are installing via sources, the default install path is usually /usr/local. If it's not, you can set it when you run config. i.e. ./configure --prefix=/usr/local.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
sorry, i could not get you.

do you mean i should save the downloaded file in /usr/local ?

and then
run using this command rpm -ivh packagename sitting on

/usr/local directory ?

 
Maybe I put too much info together at once. Let me clarify. You can save/download an RPM package anywhere you want. When you install the package to your system by doing rpm -ivh packagename, the package manager will read a sript file within the package to detemine where the files in a package should be copied to. As an end user, we really have no say where these files will go. However, if there is any special reason for why your files must reside under /usr/local, you can do a rpm -ql packagename to see a list of files installed by the package and symlink the files to /usr/local

The other thing I was talking about is if you are downloading your software as source code. Installing from source code is usually done in 3 steps; 1. configure (configure the software) 2. make (compile the software) & 3. make install (copy the compiled binaries to the location specified by step 1). In this case, if you need to install your software in a specific location, then you would at step 1 do configure --prefix=/usr/local followed by make & make install.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
if i install rpm - i yourRPM with this command where does the file go by default ?
 
Wherever the RPM file specifies.
The RPM file is like a zip of files and there is a script in that zip that controls where the other files are installed.
You have pretty much no control over how that script works and therefore where the files go. The RPM controls it all itself.
As zeland pointed out you can get an idea of what is in the RPM file by querying the RPM with rpm -ql packagename.


Trojan.
 
File? You mean files. Just so that we're on the same page here, an RPM package is just like an MSI package on Windows. When you install a package, the RPM package FILE doesn't go anywhere. The FILES inside the package however are copied to wherever the package script tell them to go. In general, binary files (executables) go to /usr/bin, manuals to /usr/share/man, libraries go to /usr/lib, etc.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Aw, shoot! Didn't realize I took so long to write the reply that you beat me to the post Trojan. Good to see you have completely healed.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Hi zeland.
Sorry, didn't mean to tread on your toes there.
After all, you gave the first complete explanation and deserve any credit there so don't worry about it.
And no, I'm not completely healed. It'll probably take a few years to fully recover from this injury. But it's getting better slowly.
(still can't use it at all though! :-( )



Trojan.
 
My mind is kinda dull today. Replying to posts seems to take me ages. By the time you post, you realize somebody else has just posted their answer minutes before yours. It's happened 3 times already today in this board, makes me feel my posts are semi-redundant.

Thought you were keeping us updated on your status from you signiture i.e. "very injured" --> "slowly healing" etc.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Do you want a few years of updates then?

;-)

(very very slowly healing ....)


Trojan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top