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.
Can someone please give me a quick guide as to where to install (BTW i never used RPM) programs or drivers ? most linux docs just talk about how to install, untar etc which is fairly self explanetary . .
I have just installed a driver for something and am sure that it doesnt work becos of how i installed it. I normally untar in my home directory and then install from there, this is because i still have a windows mentality of click install and everything will be sorted. I am the only user on my machine so doing this is okay for now but i guess is probly a bad habit
-What is the significance of the place i run 'make' or 'make install' from ?
-I dont want my home directory full of untarred directories, shouldn't i be putting them somewhere nice and tidy (like in windows the program directory)
it's perfectly fine to untar and compile in your home directory. It might be a good habit to have ~/source directory or something like that where all the sources go. The programs themselves get installed elsewhere. This happens at the
make install
step. When you run ./configure in the source tree, you can specify where the program is to be installed. Usually, the default is /usr/local. In Mandrake I find that it is often better to use /usr, especially when replacing rpm versions with self-compiled ones. So in my case I do
./configure --prefix=/usr
and then make && make install. You can use
./configure --help
to find all the other options there are. Sometimes very useful. Also, you need to be root to install a program outside your home directory.
in most cases you wont need the source code after installation, so you can actually delete the directory where you did "make" and "make install", the actual binaries generally speaking gets installed somewhere in /usr
But one good reason to keep the source codes in one place is so that you can tell what you've installed and possibly do a "make uninstall" when necessary.
Or you might want to consider changing distro to something like Gentoo, let the portage system handle the management of the source codes for you.
ok thanks. so basically (and without using RPM) i dont have to think about where things are being installed (although obviously i do) since make install will take care of everything for me. Thats great !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.