LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-13-2003, 06:44 PM   #1
twinkers
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 153

Rep: Reputation: 30
Filesystem questions


I've done quite some reading on the linux filesystem and want to make my box cleaner and more convenient for maintaining.

As I understand a good way to start is to download src to usr/local/src (and rpm to /usr/local/rpm etc). I can only do that as root though. If I download a file in Mandrake 9.1 it refuses to save it at usr/local/src since I have no write access. Shouldn't I be able to do that in all the usr/local folders? Is there an easy way to fix it?

Final question(s): after I've done a succesful compile (it happends) and do a make install can I delete the folder I compiled in? I tried nvtv recently and it only needed a configure and a make (no make install). In the readme it says that I can copy the bin to the folder I want. Nice, but what to do with the rest of the folder in /usr/local/src? can I delete it or move it? Do I have to keep the files in one folder? Quite confusing I have to say....

Regards
 
Old 09-13-2003, 07:16 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
usually, non root users don't have write permissions for the /usr and its subdirectories which is generally a good idea - don't wanna accidentally programs, libraries and stuff like that. If you are comfortable with it, you could change permissions for /usr/local./src and such so that you don't have to root to save thigns to them. You can do it from inside konqueror or also with the command
chmod
see the manpage for more details.

In general, it's ok to delete the source code though I think some programs can be uninstalled with make uninstall and for that you'd need the the source files. I don't nvtv needs the stuff in /usr/src. After moving the bin file to /usr/bin or whereever, you could try if it runs ok even if you rename that folder. If so, you can probably get rid of it.
 
Old 09-13-2003, 07:36 PM   #3
kundor
Member
 
Registered: Aug 2003
Distribution: GoboLinux
Posts: 167

Rep: Reputation: 30
deleting the source/build folder is standard practice. the binaries which are copied or installed should be self-sufficent.

Also, I (and most people I know) usually just build things in their home directory, make install as root, and then delete the build folder. This makes it difficult to uninstall; but you can either
1) keep the tarball, unpack, configure, and "make uninstall" (if you use the same installation folder both time, it should work)
2) use a package management system like GNU stow.

or, like me, never bother uninstalling anything
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid0 filesystem questions cgreco Linux - Hardware 4 10-18-2005 08:10 AM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
filesystem usage questions Menestrel Linux - Newbie 3 05-26-2004 11:35 AM
Filesystem mounting questions cowboy45 Linux - Newbie 2 05-25-2004 01:14 PM
Filesystem questions natalinasmpf Linux - General 2 02-23-2004 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:50 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