Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am familiar with the installation of packages on Linux (the configure, make and make install ritual). One question though.
After I make and install, does the complied binary necessary go to /usr/bin or does that require some switch in the make tool? Basic confusion is, suppose I downloaded a tar.gz, uncompressed it in /home/
<user> and installed it, there are a whole load more files that get generated in this folder in that process. After I finish installing, can I safely delete the folder or it is possible that some of those files are used by the installed program?
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
AFAIK, you can safely delete the source folder after running make install. Perhaps keeping the tarball would be a good idea though, because there is often a "make uninstall" that cleanly removes the program.
However, this is not always the case. Sometimes the binary may be created in the source folder. Do a ls in this folder to see.
if you can launch the program from a shell in some random directory then you can be pretty sure that the program isn't installed in your home directory.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646
Rep:
Quote:
Originally Posted by nirav1983
After I make and install, does the complied binary necessary go to /usr/bin or does that require some switch in the make tool?
No. Many programs will come with /usr/local/bin as default, or KDE based apps will often install to /opt/kde/bin. In many cases you can change this when configuring.
Code:
./configure --prefix=/usr
should be possible with most configure files. Maybe you do a "./configure --help" and read yourself, there are many other options available to finetune where files will be installed (--prefix should be enough though in most cases).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.