VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Question about installpkg.  (Read 774 times)

Locator

  • Vectorian
  • ****
  • Posts: 756
Question about installpkg.
« on: May 10, 2013, 12:46:45 pm »

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: 2504
Re: Question about installpkg.
« Reply #1 on: May 10, 2013, 01: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: [Select]
tar xvf ivtv-utils-1.4.0.tar.gzchanging into the newly created dir:
Code: [Select]
cd ivtv-utils-1.4.0configuring the source (if there is a congfigure script):
Code: [Select]
./configure --prefix=/usrcompiling the src:
Code: [Select]
make
and finally installing the software:
Code: [Select]
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: [Select]
sbbuilder --link=http://dl.ivtvdriver.org/ivtv/archive/1.4.x/ivtv-utils-1.4.0.tar.gzthen change into the ivtv-utils/src folder:
Code: [Select]
cd ivtv-utils/srcedit 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: [Select]
./ivtv-utils.SlackBuildafter it completes install the pkg:
Code: [Select]
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: 756
Re: Question about installpkg.
« Reply #2 on: May 10, 2013, 01:30:06 pm »

It helps somewhat, but what file extension(s) do configure scripts usually have?
Logged