LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 04-24-2013, 01:52 AM   #1
puru
LQ Newbie
 
Registered: Apr 2013
Location: Mumbai
Distribution: Slackware
Posts: 22

Rep: Reputation: Disabled
Post How to install a .tar.gz pkg?


Hi,

After a full installation of slackware, i need to install some of my favorites like geany, vlc, etc. All of these are not available in sbokpg or have dependency issues. So i decided to install using zipped packages.

Now the zip files with .txz or .tgz are installed without any issue i'm having issues installing those with .tar.gz extension. Some i managed to install using rpm packages.

Even though following faithfully the "solutions" to install .tar.gz, I could not install a single .tar.gz package. Could anyone help with the process of installing a .tar.gz?
 
Old 04-24-2013, 02:02 AM   #2
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 176

Rep: Reputation: 50
Go to www.slackbuilds.org and search for the programs that you want. I'll admit that it's a little clunky, but it works.
 
Old 04-24-2013, 09:57 AM   #3
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Hendronicus View Post
Go to www.slackbuilds.org and search for the programs that you want. I'll admit that it's a little clunky, but it works.
This would be good advice but if you read what the OP said, he has already found sbopkg, which means he is familiar with SlackBuilds.org already. He actually stated he was having a problem using SlackBuilds. That is the problem.

Quote:
Originally Posted by puru View Post
After a full installation of slackware, i need to install some of my favorites like geany, vlc, etc. All of these are not available in sbokpg or have dependency issues. So i decided to install using zipped packages.
These packages are available via sbopkg/SlackBuilds.org. You did not use zipped packages. A gzip compressed file is not zipped, it is gzipped. This is not the same thing.

Quote:
Originally Posted by puru View Post
Now the zip files with .txz or .tgz are installed without any issue i'm having issues installing those with .tar.gz extension. Some i managed to install using rpm packages.
Once again files with extensions tar.gz, tar.bz2, tar.xz, .tgz, .tbz, .txz are NOT zip files! Furthermore installing an rpm package directly on Slackware can be a very fast way towards completely trashing your system. Do not do it. rpm is provided to help with converting packages, not for direct installation.

Quote:
Originally Posted by puru View Post
Even though following faithfully the "solutions" to install .tar.gz, I could not install a single .tar.gz package. Could anyone help with the process of installing a .tar.gz?
A .tar.gz file tells you nothing much other than it is a gzip compressed tar. However the odds are that what you are finding are source packages (as the extension .tar.gz is commonly used for source packages, whilst .tgz is more commonly used for Slackware binary packages). Source packages need to be compiled and then installed. However you will need some method to be able to keep track of them and hence potentially remove them should you require. Some source packages provide a built in method of doing so but many do not.

The best way to keep track of packages you install is a package manager like Slackware's pkgtools (installpkg, upgradepkg, removepkg, etc.) and for this you need to use Slackware packages (perhaps by first compiling and creating them from source packages). Trying to use source packages directly is far harder than using SlackBuilds/sbopkg, so if you are considering this method because you have problems with SlackBuilds/sbopkg then you are simply making a mistake. It is not the way to go. You will only going to make your like more difficult.

For Vlc, save yourself some time and fetch a binary Slackware package from AlienBOB's repository here: www.slackware.com/~alien/slackbuilds/vlc/.

To install Geany, if you have 32-Bit Slackware you can use geany-1.22-i486-1gv.txz or if you run Slackware64 you can use geany-1.22-x86_64-1gv.txz.

If you want to build and install Geany from source using sbopkg, use the following command:

Code:
sbopkg -ki geany
 
1 members found this post helpful.
Old 04-25-2013, 10:55 AM   #4
puru
LQ Newbie
 
Registered: Apr 2013
Location: Mumbai
Distribution: Slackware
Posts: 22

Original Poster
Rep: Reputation: Disabled
Smile

Thanks for the quick reply.

As i'm new to this type of installations, i want some of my doubts cleared so that i may not do something harmful to the system.

Web suggests that both .tar.gz and .tgz is one and the same thing. So i was trying to install a .tar.gz as if it were .tgz. Now you have cleared the difference that .tar.gz is gzip compressed tar and is not a slackware binary package. When i browse through pkgtool (invoked in a directory containing .tar.gz, .tgz, .rpm), it doesnot show any entries that are .tar.gz or .rpm. Does it only show the entries that are binary packages?

I converted .rpm packages to .tgz using rpm2tgz and then installed the resulting .tgz packages. Its my mistake not to mention of this conversion in the original post. Does installing a converted rpm package potentially harm my system?

I earnestly wish to learn how to install packages from source. Is there any concise tutorial/post about how to do this. I want to know how the ./configure, make, make install works. Also it will be helpful to know pitfalls, if any, of doing so.

Thanks again for the priceless help.
 
Old 04-25-2013, 01:07 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by puru View Post
Thanks for the quick reply.
As i'm new to this type of installations, i want some of my doubts cleared so that i may not do something harmful to the system.

Web suggests that both .tar.gz and .tgz is one and the same thing. So i was trying to install a .tar.gz as if it were .tgz. Now you have cleared the difference that .tar.gz is gzip compressed tar and is not a slackware binary package. When i browse through pkgtool (invoked in a directory containing .tar.gz, .tgz, .rpm), it doesnot show any entries that are .tar.gz or .rpm. Does it only show the entries that are binary packages?
Does it show ANY extensions?
Quote:
I converted .rpm packages to .tgz using rpm2tgz and then installed the resulting .tgz packages. Its my mistake not to mention of this conversion in the original post. Does installing a converted rpm package potentially harm my system?
Not any more than installing any other packages. If you trust the source, you should be fine.
Quote:
I earnestly wish to learn how to install packages from source. Is there any concise tutorial/post about how to do this. I want to know how the ./configure, make, make install works. Also it will be helpful to know pitfalls, if any, of doing so.
With almost every source package for every version of Linux, there are instructions. They can be in a README file in the .tar.gz archive, on their website, both, or in some other location. The file may be "INSTALL", it may be "Readme.first", or whatever else the author wants to call it. That's what you need to read, and it will tell you how to install whatever package it is.
 
Old 04-25-2013, 01:45 PM   #6
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Ubuntu
Posts: 134

Rep: Reputation: Disabled
puru: .tar.gz and .tgz are the same type of file: GNU tar archives compressed using gzip.
You can examine their content from the command line by typing tar tzvf file.tgz or
tar tzvf file.tar.gz. The pkgtool utility uses .tgz files that contain an executable,
a manual page, maybe some libraries or extra documentation, and an installation script
but a random .tgz or .tar.gz file may contain either that or simply the source code (in C or C++)
to generate the executable. Before attempting to install, you should check the content with tar tvf.
As slackware executables go to /usr/bin, /usr/local/bin or /opt, if tar tvf shows these directories
in the archive, you have a package ready for pkgtool. If there is no such directory name, you are probably
looking at a source archive. You may then need to download a SlackBuild script to produce an installable package.

Concerning rpm packages, you can usually install them after converting them into .tgz files with rpm2tgz (unless
they are source rpm packages). The problem is that the distributions using RPM (RedHat, CentOS, Scientific Linux, Mageia, Mandriva,...) may use different versions of dynamic libraries (such as libXm.so) or place these libraries
in directories different from the ones used by Slackware. In such a case, the program will not start. You can locate
the missing libraries using ldd <executable>.

With source rpm, after unpacking the .tar.gz (or .tgz) file, you will need again to look for a SlackBuild script.
 
Old 04-27-2013, 01:08 AM   #7
puru
LQ Newbie
 
Registered: Apr 2013
Location: Mumbai
Distribution: Slackware
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks everyone.

TBOne: The pkgtool doesnot show any extension. What i mean is in a folder containing .tar.gz and .tgz, .txz only certain packages are shown in the pkgtool. It may be showing only binary packages.

I installed some packages usign ./configure, make, make install method successfully.

Thanks again everybody.
 
  


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
How install packages in Macbook pro.. like apt-get install <pkg>. Dinesh184 Linux - Newbie 2 08-19-2012 05:51 AM
[SOLVED] Install standalone .pkg.tar.gz file in Pacman Kenny_Strawn Arch 4 10-22-2010 10:06 PM
[SOLVED] Any program automatically convert .deb to .pkg.tar.gz/xz cyker Arch 3 07-20-2010 01:57 AM
How to install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 06:52 AM
Installing a *.pkg.tar Package CrackerStealth Slackware 3 12-27-2005 03:47 PM

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

All times are GMT -5. The time now is 10:22 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