LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-10-2020, 11:23 AM   #1
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Rep: Reputation: 20
rpm2tgz vs rpm


Hi,

I'm reading this fantastic forum for quite some time and finally decided to join the community since I was not able to find an answer to this question:
from time to time it happens that I need to install a package that is only available as a rpm package. This leaves me with two options:

# rpm --nodeps -i package.rpm

and

# rpm2tgz package.rpm && installpkg package.tgz

Which method should be preferred?
 
Old 09-10-2020, 11:29 AM   #2
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Second one is more easily reverted by doing removepkg package.tgz
It depends on the package really, some of them you can just extract into /opt or /usr/local and they will just work.
Others not so much.
 
Old 09-10-2020, 11:34 AM   #3
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by elcore View Post
Second one is more easily reverted by doing removepkg package.tgz
Thanks, but is that really that much easier than rpm -e package ?
 
Old 09-10-2020, 11:44 AM   #4
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by M0M0 View Post
Thanks, but is that really that much easier than rpm -e package ?
Yes well, there's a "-" in that command which does not autocomplete.
In /var/log/packages one could do removepkg pack<tab> and hit return, so yeah, I guess.
 
Old 09-10-2020, 11:44 AM   #5
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Yes, as you would only use one package manager to keep track of your packages.
If you have some packages installed with pkgtools and some with rpm, you would have to keep track of which needs what package manager.

Also, if 2 packages have the same library, pkgtools only removes said library when you remove the last package that installs it... unless the other package was installed with rpm... see the problem?
 
2 members found this post helpful.
Old 09-10-2020, 04:35 PM   #6
M0M0
Member
 
Registered: Sep 2020
Location: Germany
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 20
All right, that makes sense. 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
rpm2tgz/cpio cant handle rpm v4? Artanicus Slackware 0 03-12-2005 09:17 AM
rpm2tgz research stuff aus9 VectorLinux 0 11-17-2003 08:46 AM
about rpm2tgz laxi Slackware 4 09-28-2003 12:43 PM
rpm2tgz question. trn Slackware 6 03-03-2003 02:04 PM
rpm2tgz not cutting it Kellvyn Slackware 2 07-28-2002 02:46 AM

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

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