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 03-28-2004, 04:23 PM   #1
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 545

Rep: Reputation: 30
Uber-noob question about deleting install files


I have a question about deleting files after an install program. Well first of all I assume that with *.rpm files you can safely delete the rpm file after you install the program. But with tarballs is it safe to delete the directory they make? For example, I read somewhere to uncompress/unwrap your tarballs from usr/local, then go into the directory and run ./configure, make, make install. After I do that, I can delete the directory that was created in /usr/local can't I? Do the installation (images, sounds, etc) files in the binary directory get copied to the binary directory as well, or does the binary keep referencing those in the /usr/local directory? I just want to make sure before I start deleting stuff. Thanks
 
Old 03-28-2004, 04:37 PM   #2
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
After you have downloaded a source distribution and done ./configure, make, make install:

You can always delete the file you downloaded.

You can delete the directory which the tarball expanded to. This contains the source code and the compiled files. When you 'make install' the compiled files are copied install the install destination.

The program will install itself into some standard place by default. Often this will be /usr/local or whatever. You shouldn't delete this directory. Often you are required to install it as root and then you can't delete the directory unless you are root. Don't round deleting things as root unless you are really sure!

I hope this answers your question.

Mark.
 
Old 03-28-2004, 04:41 PM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
When you build and install a software package from source using make install, the expected behaviour is that the binaries go to /usr/local/bin, libraries to /usr/local/lib, images to /usr/local/share, and so on. The directory you installed it from can be deleted, but it is wise to keep a copy of the tarball since the Makefile often supports an "uninstall" target which will remove the program altogether.

You do NOT have to unpack the source in /usr/local. I build all my software as myself - not root - in a directory that I usually call ~/build so I know where I have all unpacked sources. When done building I su to root for the make install.

Edit: Muzzy, you beat me to it.

Håkan

Last edited by hw-tph; 03-28-2004 at 04:42 PM.
 
Old 03-28-2004, 04:45 PM   #4
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Rep: Reputation: 15
shouldnt you be saving them in /home/user_name/ and not /usr/local ?

in my home/dworkin/ directory, I created /home/dworkin/tarballs/ and /home/dworkin/Programs. the tarballs is where i DL the tarballs to, the Programs is where I un-tar them to and then to do the ./configure, make and make install. that may just be the way I do things, I'm not sure what the /usr/local directory is for...

I do know that I have a lot more disk space in the /home directory though as its mounted as a seperate partion so that is where I keep stuff I dl and save or what not.

I think the source can be deleted safely after doing the make install but am not 100% sure as I'm still a newb too.

dworkin
 
Old 03-28-2004, 05:01 PM   #5
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Rep: Reputation: 15
ok, hw-tph answered while I was typing my post so now I have a better understanding of what /ust/local is for. I love this forum.
 
Old 03-28-2004, 05:51 PM   #6
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 46
u could also use checkinstall , it converts the source file to an rpm then it will be easier to install and remove.
all u have to do is type :
./configure
make
checkinstall
 
Old 03-28-2004, 05:54 PM   #7
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 545

Original Poster
Rep: Reputation: 30
Wow really? I didn't know I could make my own RPMs! Wow this is great, thanks everyone!
 
Old 03-28-2004, 06:02 PM   #8
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 46
but if u dont have checkinstall then u have to install it
 
Old 04-01-2004, 09:41 AM   #9
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Rep: Reputation: 15
in mandrake I think you have to use rpm-build if you want to build an rpm package.

read up on it here... http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo

dworkin
 
  


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
help me im uber noob ineedhelpwlinux Linux - Newbie 1 03-04-2005 05:09 PM
uber noob here please be patient daverutt Mandriva 11 01-01-2005 12:55 PM
Uber Noob: how do you log out of an X Session Mytherall Linux - Newbie 2 02-22-2004 04:00 PM
Uber-Noob : Cant even install. Need all the help I can get! troublefree Linux - Newbie 2 05-04-2003 05:14 PM
uber NOOB question! georgc Linux - Newbie 4 05-04-2003 04:56 PM


All times are GMT -5. The time now is 01:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration