-   Slackware (
-   -   where to download src2pkg (

matters 06-10-2007 02:24 PM

where to download src2pkg
On these links that ive found here i cant anymore download this utility?


erklaerbaer 06-10-2007 02:36 PM

gnashley 06-11-2007 07:29 AM

Just a note to matters- I've just uploaded a new version a few minutes ago. If you've already downloaded version 1.2 be sure to get the latest version 1.3 instead. The 1.2 version has been on the site for a couple of weeks but I hadn't announced it as I was still testing. Finally, last night I uncovered a serious bug in the new installwatch libraries so be sure to use the latest src2pkg-1.3 version which goes back to the old libs.

The link given is the new home of the src2pkg packages and sources. Although I'll probably be making a separate web-page for src2pkg soon, the latest package should always be found in the same place.

mfoley 01-27-2017 03:51 AM

how to install src2pkg
I've gone to the site to download src2pkg. Sorry to be ignorant, but there is little information there. I guess it is assumed that one should instinctively know what to do. So, I beg a little guidance. The site lists:

Index of /amigolinux/download/src2pkg/
Name                    Last Modified        Size    Type
Parent Directory                                        Directory
pasture/                2014-Apr-04 09:12:54    -      Directory
src2pkg-3.0/            2014-Apr-04 13:17:33    -      Directory
src2pkg-extensions/      2009-Jan-29 05:37:33    -      Directory
src2pkg-ng/              2009-Dec-20 13:22:12    -      Directory
CHANGES                  2014-Apr-04 11:05:59    29.8K  application/octet-stream
ChangeLog                2014-Apr-04 11:05:33    233.3K  application/octet-stream
src2pkg-3.0-noarch-2.txz 2014-Apr-04 14:40:12    2.7M    application/octet-stream

The src2pkg-3.0 seems to contain packages for other distros, debian, chromium, etc.

src2pkg-3.0-noarch-2.txz seems to be the likely candidate for Slackware though nothing on the site itself specifically says that.

When I download and examine the txz file, it has LOTS of files, starting apparently at the root:

$ tar -tvf src2pkg-3.0-noarch-2.txz
drwxr-xr-x root/root        0 2014-04-04 14:40 ./
drwxr-xr-x root/root        0 2014-04-04 14:40 install/
-rw-r--r-- root/root      587 2011-07-24 13:39 install/slack-desc
-rw-r--r-- root/root      4771 2014-04-04 14:40 install/
drwxr-xr-x root/root        0 2014-04-04 14:40 etc/
drwxr-xr-x root/root        0 2014-04-04 14:40 etc/src2pkg/
-rw-r--r-- root/root      502 2014-03-15 14:21 etc/src2pkg/
-rw-r--r-- root/root    26654 2013-08-26 06:52 etc/src2pkg/
-rw-r--r-- root/root      1009 2014-01-09 13:13 etc/src2pkg/
drwxr-xr-x root/root        0 2014-04-04 14:40 usr/
drwxr-xr-x root/root        0 2014-04-04 14:40 usr/bin/
-rwxr-xr-x root/root    25686 2014-03-25 14:58 usr/bin/src2pkg
-rwxr-xr-x root/root      5005 2013-11-26 10:53 usr/bin/src2pkg-dnd

There are no obvious instructions for installing. What do I do, simply untar this at the root?

Do I untar it into a staging directory and run install/

Didier Spaier 01-27-2017 04:33 AM

src2pkg-3.0-noarch-2.txz is a Slackware package. Install it with installpkg.

PS But you could as well use slacktrack, included in Slackware, written by Stuart Winter aka drmozes @ LQ.

To know more:

man slacktrack

kjhambrick 01-27-2017 04:36 AM

mfoley --

I don't have time to see for myself, but looking at the contents of src2pkg-3.0-noarch-2.txz that you listed below it looks like a candidate for `installpkg src2pkg-3.0-noarch-2.txz`

HOWEVER, I don't ever run installpkg on Packages from unknown sources without first checking the install/ file !

What I would do if I had time is:


mkdir /tmp/src2pkg
cd /tmp/src2pkg
tar -xvf /path/to/src2pkg-3.0-noarch-2.txz

Then I would inspect /tmp/src2pkg/install/ to look for scary stuff.

If it looks 'safe' ... then: installpkg /path/to/src2pkg-3.0-noarch-2.txz

And eventually I might even clean up my mess: rm -rf /tmp/src2pkg :)


-- kjh

hitest 01-27-2017 10:21 AM


Originally Posted by kjhambrick (Post 5660871)

HOWEVER, I don't ever run installpkg on Packages from unknown sources without first checking the install/ file !


The src2pkg utility is very useful; gnashley is a long time well-respected member of our forum. I trust his work.

kjhambrick 01-27-2017 02:30 PM

Thanks hitest.

I didn't know gnashley was the author ... I do trust gnashley :)

As a rule however, I still like look at the scripts before doing installpkg from a new source

-- kjh

gnashley 01-28-2017 04:20 AM

There used to be a wiki for src2pkg, but we let the domain expire some time ago. Basically it was a re-organized version of the docs included with src2pkg. Indeed, the *.txz archive is an installable slackware-type package. The package does not included the binaries used by src2pkg. After installing the package, you must run 'src2pkg --setup' (as root) which will compile the needed binaries, create a package of them and install it for you. Then you are ready to go.
The most basic use is to simply run:
src2pkg path/to/archive
or even:
src2pkg URL-of-archive

There are many, many options to src2pkg for nearly every imaginable case. The best way to experiment with them is by using src2pkg to build some sources which are easy and fast to build, without extra dependencies. That way you can quickly see what the options do.

Read the docs for more examples and explainers.

All times are GMT -5. The time now is 03:23 AM.