VectorLinux
April 16, 2014, 07:58:04 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Question about installpkg.  (Read 474 times)
Locator
Vectorian
****
Posts: 589



« on: May 10, 2013, 11:46:45 am »

Is it possible to use "installpkg" with files ending with ".tar.gz", and if so, how do I go about doing that (it seems like that is what most, if not all Linux software is like nowadays)? And if not, how do I go about installing such software on my system?
Logged
uelsk8s
Administrator
Vectorian
*****
Posts: 2503



« Reply #1 on: May 10, 2013, 12:11:15 pm »

installpkg will install vector or slackware pkgs to your system. it will not handle tar.gz files, they are usually src tarball(uncompiled source).
most source tarballs can be installed by extracting the src:
Code:
tar xvf ivtv-utils-1.4.0.tar.gz
changing into the newly created dir:
Code:
cd ivtv-utils-1.4.0
configuring the source (if there is a congfigure script):
Code:
./configure --prefix=/usr
compiling the src:
Code:
make

and finally installing the software:
Code:
make install

If you want to use the package manager to install/uninstall you will first have to make a package.
you can use sbbuilder to create the pkg like this:
Code:
sbbuilder --link=http://dl.ivtvdriver.org/ivtv/archive/1.4.x/ivtv-utils-1.4.0.tar.gz
then change into the ivtv-utils/src folder:
Code:
cd ivtv-utils/src
edit the ivtv-utils.SlackBuild if needed. (this source has no configure script so delete the lines before make that try to run it)
then run the script:
Code:
./ivtv-utils.SlackBuild
after it completes install the pkg:
Code:
installpkg ../ivtv-utils*txz

Hope that Helps.
there are lots of different types of code out there so this will not work for all of them, but after you try a few you will get more familiar with how its done , and you can always ask for more specific help.

Uelsk8s
Logged
Locator
Vectorian
****
Posts: 589



« Reply #2 on: May 10, 2013, 12:30:06 pm »

It helps somewhat, but what file extension(s) do configure scripts usually have?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!