LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Installing software (https://www.linuxquestions.org/questions/slackware-14/installing-software-156203/)

sharpie 03-11-2004 04:05 AM

Installing software
 
Where does everybody install their software? /bin, /usr/bin, etc... What kind of software do you put where? And do you keep the source?

Mogwa_ 03-11-2004 04:12 AM

software that is install via installpkg ot pkgtool is installed into /usr/bin /bin and /opt

software that is compiled from source code should normally be placed in /usr/local/bin or /opt

personally i have created a folder /build where i keep downloads and the source code when i am building packages from source.

this way i can just go in /build and delete the things that did not compile or a dont need to keep every so oftern so that my system does not get filled up with junk.

Mainframe 03-11-2004 06:44 AM

software
 
It depends on how you install your software. As stated below, you can use "installpkg" to install a slackware specefic filename.tgz file and files will go in different places. Configuration files may end up in /etc/ and binaries usually are in /bin/ /sbin/ /usr/bin/ /usr/sbin /usr/local/bin /usr/local/sbin/ etc...it all depends on the software really.

If you compile from source (the best way to install software IMO) then
I like to place all my installed software in /usr/,

read up on installpkg man page to learn how to pass some arguments to installpkg to allow it to show you where the files would be installed. Kind of like a test, it does not run the installation, but tells you what will go where.

also read up on linux partitioning and how it works, and how you should
lay out your system (/usr for software, /boot for kernel, /var for email and logging, /tmp for temporary files, /home for user home directores ) etc.

I like to keep the sources because if you need to recomplie your software to add a new feature, the source is already there and you dont have to go and download it again.

Cerbere 03-12-2004 12:16 AM

You may also be interested in checkinstall. It replaces the 'make install' step when installing from source and creates a Slack (or Redhat or Debian) package, which makes it really easy to uninstall. This is a lot more reliable than most 'make uninstall' procedures and allows you to delete the build directory.

You can also find checkinstall on the Slackware site, but I don't recall where they put it. Search around, it's definitely a worthwhile utility.

Enjoy!
--- Cerbere


All times are GMT -5. The time now is 05:51 PM.