LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-17-2006, 09:31 AM   #1
SPo2
Member
 
Registered: Jun 2005
Posts: 88

Rep: Reputation: 15
linux filesystem question


Hi Guys,

I am using Mandriva 10.1....

1) Actually HOW & WHAT, decides where linux rpm or .tar files will be installed in ? ( What particular script in e program//make )

2) Example::::where does default rpm stores in?

As sometimes, certain tar files stores in: /usr/local/etc,
other in: /etc,
while some in: /usr/lib/.

As with WINDOW, all are just "defaulted" to C" drive "Programs" file.

pls advise ??? thanks
 
Old 02-17-2006, 10:19 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Hi,

Unix programs, in general, are not installed in a single location. It's common that a package wrote some configuration files at /etc, libraries at /lib, docs at /usr/share and executables at /usr/bin.

rpm packages have the installation directory set by the packager, the guy who built the rpm file. There is a SPEC file in this process. The paths of several files are described there. After a rpm package is installed, you can list all files that belongs to it, by "rpm -ql package-name". You can query the rpm database for what package a file belongs to, using "rpm -qf /path/to/file".

tar packages in source form, have a Makefile or a configure script that builds up the program and auxiliary files. For theses, read the README file or INSTALL file. Sometimes there is a command line option to configure/make so you can install at /usr or /usr/local.

Uninstalling a rpm package will remove all files, no matter how sparse they was installed. Packages installed with make does not have such feature. You need to remove yourself every file that belongs to a program and it can be a problem. So, prefer the rpm format when available.

Last edited by marozsas; 02-17-2006 at 10:21 AM.
 
Old 02-18-2006, 12:57 AM   #3
SPo2
Member
 
Registered: Jun 2005
Posts: 88

Original Poster
Rep: Reputation: 15
thanks so much,

1) juz wondering for tar files, since e packager set it's storage path, its there a way where we can edit DIRECTLY in e Makefile script so it goes to our desired path?

INstead of choosing only e "2 or 3" options that e packager offers? As does it really matters ?, since
/binary are e only important files.....e rest we can set it 2 other paths......so we can hv better control over while uninstallation of tar files.

Marozsas, do u have any website in particular which describe in better details what each files-sys does example;
/etc........./sbin.........../bin.......

As all my books & website that i found juz covers very briefly.

Thanks......
 
Old 02-19-2006, 03:09 PM   #4
dennisfen
Member
 
Registered: Dec 2005
Location: Moscow, Russia
Distribution: LFS 6.3
Posts: 32

Rep: Reputation: 15
SPo2,
Filesystem Hierarchy Standard http://www.pathname.com/fhs/ - it should explain everything about the
Quote:
/etc........./sbin.........../bin.......
to you
 
Old 02-20-2006, 04:52 AM   #5
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
There is two ways to deal with installation paths in Makefiles. Those that use the configure script to build the Makefile, you can pass in the cmd line the installation path. This is a standard feature in configure program and should work always.

The hard way is looking at Makefile, the install section, and changing the destination path manually.

regards,
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about the Linux NTFS filesystem support driver. Pingachevsky Linux - Newbie 3 01-24-2006 10:07 PM
Filesystem Question Ryan450 Linux - Newbie 8 08-09-2005 01:19 AM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Question Linux Filesystem <-> Windows MFT Negatron Linux - Newbie 3 03-18-2004 11:50 AM
Filesystem question log Linux - General 5 06-13-2003 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:07 AM.

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