LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-01-2009, 01:47 AM   #1
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
In need of a Slackware guru


I have a few questions, First an overview; I have installed CLFS 64, and have everything basic. I have all runlevel init's installed and have the dhcp up and running.

I have installed pkgtools. I have never used Slackware's pkgtools before so I have a few questions.

1- When ever I install a package with "installpkg" I get this error:

Code:
WARNING: pkgtools are unstable with tar > 1.13.
         You should provide a "tar-1.13" in your $PATH.
2 - Is Slackware64 FHS compliant with the /lib directories. Meaning is Slackware64 have a /lib or a /lib64...? And if so, would a sym link work.


3 - How can I install a Slackware groups (i.e. a, ap, e, n, etc...)...? If possible...


I wanna get X installed and a few other apps using pkgtools. And I am a complete novice with Slackware package management.
 
Old 10-01-2009, 02:39 AM   #2
Martinezio
Member
 
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Rep: Reputation: 32
Quote:
Originally Posted by manwithaplan View Post
1- When ever I install a package with "installpkg" I get this error:

Code:
WARNING: pkgtools are unstable with tar > 1.13.
         You should provide a "tar-1.13" in your $PATH.
Upgrade tar manually from sources, if pkgtools are not working for You.
Quote:
Originally Posted by manwithaplan View Post
2 - Is Slackware64 FHS compliant with the /lib directories. Meaning is Slackware64 have a /lib or a /lib64...? And if so, would a sym link work.
Slackware64 is multilib OS, and those directories have different meanings - in /usr/lib are 32-bit compatibility libraries, and lib64 is for 64-bit libraries. This is for coexistence of the same libraries compiled with different achitecture.

Quote:
Originally Posted by manwithaplan View Post
3 - How can I install a Slackware groups (i.e. a, ap, e, n, etc...)...? If possible...
upgradepkg --install-new --reinstall {a,ap,e,n,etc}/*.t?z

or write small script for this

Code:
for i in {a,ap,e,n,etc}; do
  upgradepkg --install-new --reinstall $i/*.t?z
done
Quote:
Originally Posted by manwithaplan View Post
I wanna get X installed and a few other apps using pkgtools. And I am a complete novice with Slackware package management.
If You have complete tree of slackware packages repository (ie. DVD, or You have mirrored it from web), You can use pkgtool - read manpage for help.

If You still have problems, consider of reinstalling whole system from DVD.

Enjoy, and good luck
 
Old 10-01-2009, 03:15 AM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Your error gives you the answer, you need a tar-1.13 executable in /bin, once you have done this pkgtools should work and you will be able to use installpkg.

samac
 
Old 10-01-2009, 03:36 AM   #4
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by samac View Post
Your error gives you the answer, you need a tar-1.13 executable in /bin, once you have done this pkgtools should work and you will be able to use installpkg.

samac
Ya .. I do have a tar-1.13 in my /bin ... This is why I am confused about this error. I even looked and edited installpkg, still no luck.
 
Old 10-01-2009, 08:11 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Whose tar-1.13 do you have? Be sure to use the original sources from Slackware -they are bundled with the normal, modern tar version.
 
Old 10-01-2009, 12:16 PM   #6
fourcs
LQ Newbie
 
Registered: Oct 2004
Distribution: Slackware 10.2/11.0
Posts: 15

Rep: Reputation: 0
tar

I had this problem a while back. My recollection is that it was looking for a link/reference to tar 13, which was fixed with a symbolic link alias; I'm using tar 1.16.1. Sorry I can't give you any more than that. My memory fails me.

Last edited by fourcs; 10-01-2009 at 12:21 PM. Reason: more info
 
Old 10-01-2009, 02:50 PM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
It doesn't work to use an alias or link. The pkgtools explicitly test the version of tar using 'tar --version'. And they are not kidding about other versions of tar not being supported -tar-1.13 has some specific beahviours which affect the way packages get constructed and installed. And some of the tar-1.13 options called by pkgtools have completely different behaviour with later versions of tar. I strongly recommend that you build tar from the official slackware sources so that tar-1.13 gets properly installed.

Using any other version of tar can cause corrupted database files when installing packages. This means that when you try to uninstall a package, the files don't really get removed at all.
 
Old 10-01-2009, 02:57 PM   #8
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by gnashley View Post
It doesn't work to use an alias or link. The pkgtools explicitly test the version of tar using 'tar --version'. And they are not kidding about other versions of tar not being supported -tar-1.13 has some specific beahviours which affect the way packages get constructed and installed. And some of the tar-1.13 options called by pkgtools have completely different behaviour with later versions of tar. I strongly recommend that you build tar from the official slackware sources so that tar-1.13 gets properly installed.

Using any other version of tar can cause corrupted database files when installing packages. This means that when you try to uninstall a package, the files don't really get removed at all.
Thanks, for the explanation, I was using the official gnu release 1.22, I'll grab the Slack source and compile & test.
 
Old 10-01-2009, 07:37 PM   #9
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally Posted by manwithaplan View Post
3 - How can I install a Slackware groups (i.e. a, ap, e, n, etc...)...? If possible...
You can do this with one of the more obscure options of pkgtool that is the "-sets" parameter. Here is a little script to illustrate this, This will install the t and y sets as if they where selected from the setup asking for optional files and automatically installing required ones. It does this by following the tagfiles on the install disk image :
Code:
#!/bin/bash
MT=$(mktemp -d -t) # create a temporary directory for the mount point
# lets say we have the slackware-13 iso saved in the /tmp directory
mount /tmp/slackware-13.0-install-dvd.iso $MT -o loop # mount slack to mount point via loop device
pkgtool -sets T#Y -source_mounted -source_dir $MT/slackware # use pkgtool for slackware sets t and y
umount $MT # get rid of mounted slackware iso
rmdir $MT  # get rid of mount point directory
This should illustrate ways of using pkgtool to install package sets following the included tagfile. You can do all this with installpkg using the "-menu" and "-priority " flags but pkgtool does it all for you.
 
Old 10-01-2009, 08:56 PM   #10
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by bgeddy View Post
You can do this with one of the more obscure options of pkgtool that is the "-sets" parameter. Here is a little script to illustrate this, This will install the t and y sets as if they where selected from the setup asking for optional files and automatically installing required ones. It does this by following the tagfiles on the install disk image :

This should illustrate ways of using pkgtool to install package sets following the included tagfile. You can do all this with installpkg using the "-menu" and "-priority " flags but pkgtool does it all for you.
This is a great answer to my post. I was looking for a way to install the sets. Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need an HP-UX guru Brydon Other *NIX 4 03-23-2007 01:11 PM
I need a guru... fatblueduck Linux - Software 6 04-04-2005 01:11 AM
Slackware Guru Advice Needed g452 Slackware 20 04-07-2004 12:32 PM
Welcome new guru! MasterC General 17 05-20-2003 12:50 PM
guru? aizkorri LQ Suggestions & Feedback 2 03-19-2002 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration