LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2016, 12:11 PM   #1
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Rep: Reputation: Disabled
Why can't I install Slackware files (.txz format)?


I recently downloaded and installed Slackware 14.1 to my computer, and according to the online instructions for it, the way to install programs is to type "INSTALLPKG [ filename ].txz. I did that, and it comes back with "command not found" . So where do I go from here?
 
Old 05-07-2016, 12:33 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Welcome to LQ and Slackware!

You must have root permission (i.e., login, su or sudo) and it is installpkg not INSTALLPKG (case sensitive).

It is also worth noting that not all .txz archives are installable packages, so if you continue to have problems please tell us the package name and where it came from (i.e., Slackware repo, third party, built from SBo, etc.).
 
Old 05-07-2016, 12:36 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

You are using 'root' to installpkg? I use a console then 'su-' to get root privileges.

Hope this helps.
Have fun & enjoy!
 
Old 05-07-2016, 02:08 PM   #4
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
I even tried that after signing in as 'root' and got the same result. As a matter of fact, "installpkg" didn't show up after I typed in "help" (a bunch of other commands did show up, however)?
 
Old 05-07-2016, 02:15 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Can you be a little more specific, please.

How did you "sign in as root"? A normal login or using su or sudo?

Please post the command you are using and the exact error message you get.

Is this a full install of Slackware?

Does man installpkg open a man page?

What .txz package are you trying to install?

Last edited by astrogeek; 05-07-2016 at 02:18 PM.
 
Old 05-07-2016, 02:25 PM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Why can't I install Slackware files (.txz format)?

As root, try with full path :
/sbin/installpkg
 
Old 05-07-2016, 03:04 PM   #7
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by TheNutCase View Post
I even tried that after signing in as 'root' and got the same result. As a matter of fact, "installpkg" didn't show up after I typed in "help" (a bunch of other commands did show up, however)?
I'm not surprised that "help" didn't mention installpkg since "help" merely gives you help for bash.

After you sign in as root, what is the output of these commands?
Code:
echo $PATH
Code:
id
As an example, when I run those commands, I get...
Code:
root@hp635:~# echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin
root@hp635:~# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
root@hp635:~#
I wouldn't expect to see java entries in your $PATH output.
 
1 members found this post helpful.
Old 05-07-2016, 03:11 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by TheNutCase View Post
As a matter of fact, "installpkg" didn't show up after I typed in "help" (a bunch of other commands did show up, however)?
The program help provides you generic commands that are supported by bash. It does not list all available commands that you can type.

As astrogeek mentioned, installpkg is, by default, only able to be run by root. It is located in the /sbin folder, which regular users don't have access to.

If you did log in as root and still can't run installpkg (check the spelling), then your installation isn't complete or it is screwed up somehow (or maybe you accidentally booted into another distro you may have installed). The installpkg program is included within the pkgtools package that is part of the a/ series of packages. These are the base packages that should be installed by almost all users (although, it is always recommended to just do a full install).

Following Richard Craniums post and providing us with the output should help narrow down the issues. Can you also post the output of the following commands?

Code:
ls -la /var/log/packages/pkgtool*
ls -la /sbin/*pkg*
Example output should be something like below:

Code:
jbhansen@craven-moorhead:~/tmp$ ls -la /var/log/packages/pkgtool*
-rw-r--r-- 1 root root 1350 Jul 11  2014 /var/log/packages/pkgtools-14.1-noarch-2
jbhansen@craven-moorhead:~/tmp$ ls -la /sbin/*pkg*
-rwxr-xr-x 1 root root  3169 May 11  2010 /sbin/explodepkg*
-rwxr-xr-x 1 root root 20490 Apr 22  2011 /sbin/installpkg*
-rwxr-xr-x 1 root root 11315 Jun  2  2009 /sbin/makepkg*
-rwxr-xr-x 1 root root 22670 Oct  2  2013 /sbin/pkgtool*
-rwxr-xr-x 1 root root 14048 Apr 28  2009 /sbin/removepkg*
-rwxr-xr-x 1 root root 12135 May 11  2010 /sbin/upgradepkg*
 
Old 05-07-2016, 04:06 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

Quote:
Originally Posted by TheNutCase View Post
I even tried that after signing in as 'root' and got the same result. As a matter of fact, "installpkg" didn't show up after I typed in "help" (a bunch of other commands did show up, however)?
If you do a 'man su' then see the option for '-';
Code:
 -, -l, --login
           Provide an environment similar to what the user would expect had the user logged in directly.
That is why one uses 'su -' to get root privileges and pathway for commands when using the 'cli'.

If you do a 'man pkgtool' you can see what is necessary or for 'man installpkg';
Code:
 installpkg - install Slackware packages.

SYNOPSIS
       installpkg  [  --warn  ] [ --md5sum ] [ --root /otherroot ] [ --infobox ] [ --menu ] [ --terse ] [ --ask ] [ --priority ADD|REC|OPT|SKP ] [
       --tagfile /somedir/tagfile ] packagename [ packagename2 ...  ]

DESCRIPTION
       installpkg installs single or multiple *.tgz (or .tbz, .tlz, .txz) binary packages designed for use with the Slackware  Linux  distribution
       onto your system.

OPTIONS
       --warn packagename
              Generate  a  list  of  files that would be overwritten to the standard output, but do not actually install the package.  The list is
              formatted in a suitable fashion to use as a list of files to backup.

       --md5sum packagename
              Record the package md5sum in the metadata written in /var/log/packages.

       --root /otherroot
              Install using a location other than / (the default) as the root of the filesystem to install on.  In the example given, use  /other-
              root instead.  Setting the ROOT environment variable does the same thing.

       --infobox
              Use /bin/dialog to display an informational dialog as the package is installed.  Primarily used when installpkg is called from other
              scripts.

       --menu Use /bin/dialog to display a menu asking the user if they would like  to  install  the  package(s)  or  not.   Generally  used  when
              installpkg is called from other scripts.

       --terse
              Install the package displaying only a single description line to stdout.

       --ask  Used with -menu mode.  When selected, always ask if a package should be installed regardless of what the package's priority is.

       --priority ADD|REC|OPT|SKP
              When  installing  with  the -menu option, package priority levels (found in the file "tagfile" in the package directory) are used to
              automatically install (ADD) or skip (SKP) a package, or to suggest recommended (REC) or optional (OPT) to the user if a menu is dis-
              played.  If a priority is set on the command line, it will override the values set in the tagfile for the entire package list.

       --tagfile /somedir/tagfile
              Specify  a  different file to use for package priorities (in this example, /somedir/tagfile will be used).  The default is "tagfile"
              in the package's directory.
'man command' is your friend so please use it to understand what is necessary to get success.

Hope this helps.
Have fun & enjoy!
 
Old 09-21-2019, 10:20 AM   #10
dyn0myt3
LQ Newbie
 
Registered: Sep 2019
Posts: 2

Rep: Reputation: Disabled
I think; from my limited knowledge; you have to run updatedb after install. i was getting similar errors.

dyn0
 
Old 09-21-2019, 10:25 AM   #11
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
updatedb?

nope

I hope they figured it out in the last few years
 
Old 09-21-2019, 11:27 AM   #12
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Otherwise it's back to F5...
 
  


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
[SOLVED] .txz install files Fixit7 Puppy 13 06-12-2015 08:31 PM
how to make slackware package txz hoanglong1712 Slackware 4 09-20-2009 08:19 AM
[SOLVED] .txz packages on slackware [SOLVED] michaelinux Linux - Software 4 09-04-2009 10:14 PM
Why ark in Slackware 13 doesn`t recognize .txz packages... witek Slackware 6 09-01-2009 09:10 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 10:28 AM

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

All times are GMT -5. The time now is 05:44 PM.

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