Quote:
Originally Posted by NightSky
I really need to know what happens when I use the install command and make install.
I have 4 tar.gz printer packages sitting in a folder in /home/usr; I unpacked one but I am not sure install instructions are akin to slackware install requirements and I don't know how to undo whatever I did; so I am afraid to open the rest because I am not sure what process of installing to use.
|
You can cat the Makefile and read what the install process actually does. Just look for the install section. Also, some software will allow you to specify a destination directory to install to. This is usually specified in an option during "make install". Finally, if nothing else you can sometimes change the install directories by setting options during "./configure".
For example, when using the option at "make install" it looks like
Code:
make install DESTDIR="/home/USERNAME/myTestdir"
If that is not available you can usually set PREFIX during the configure process (by default it is usually something like /usr so include 'usr' at the end if you change this to a test directory).
Code:
PREFIX="/home/USERNAME/myTestdir/usr" ./configure
You might want to change other env vars during configure as well. To see the available options do this
When you set the install directory or PREFIX everything should get installed to that directory tree. All that will be left to create a Slackware package is to add a description (slack-desc) and then run makepkg!
This is essentially the process that most Slackbuilds use. Take a look at
http://slackwiki.org/Writing_A_Slack..._Not_Available. That page tells you everything you need to know about Slackware package creation. The particular section the link points to goes into more detail about what you can do if there is no DESTDIR option. I suggest you take a look at some of the Slackbuild scripts (search at
http://slackbuilds.org/) for software you use. After reading them and that wiki page you should have a good idea how this process works.
If the software you are trying to install doesn't use configure or even a Makefile at all it might not need to be installed (or you have to manually move files to install it) or it includes a script to do the work. Try reading the script. Does it have an uninstall routine? Is is made for Slackware or distros like Fedora/Red Hat or Debian/Ubuntu? Does it give you any destination directory options?
If you are still stuck you can try out src2pkg. For those of you thinking about checkinstall read
this thread about checkinstall. Basically this program watches changes to your system during the install routine and makes a package out of it. The software does not get installed until you install the new package. This program is not perfect and you might need to tweak some settings once in a while.
Another thing you can do is set up a clean virtual test box using vmware. Simply install your software and note the changes to the system. When you are done revert to a snapshot.
Finally,
always read ALL the documentation that comes with software and in particular any README or INSTALL files. Sometimes you find out things that could save you a lot of hassle.