LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2018, 07:20 PM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
difference of using tar.gz or rpm to install package


I know package can not install by tar.gz or rpm way , if I install it with tar.gz way by using default setting setting ( do not change any path , parameter etc. ) , is it the same as by using rpm ?
 
Old 11-11-2018, 07:35 PM   #2
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
Install by tar.gz, you mean from the sources and compile it ?

Often distributions changes things when they packages software. So no, you can't be sure it is the same thing. A lot of options are available when compiling.

And using rpm (or any official distro's packages) allow you to easily upgrade or remove packages. From source it is a bit harder.
 
1 members found this post helpful.
Old 11-11-2018, 07:52 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
is it the same as by using rpm
as above , no it is not the same .
However you can make a rpm from the source code using "rpm-build" and install with your package manager ( yum/dnf/zypper)
 
1 members found this post helpful.
Old 11-12-2018, 12:02 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Advantages of rpm compared to tarballs:
  • dependency check (although autoconf, often used to put a tarball together, checks dependencies as well)
  • you can install binaries
  • you get a database of all your installed software
  • thanks to the DB, you can verify, remove or update software with ease
Perhaps a few more.

EDIT disadvantages: tar and compilers are available on all platforms, not rpm. And when you use tar, you are forced to do more manual work and be more thorough, which can be considered a plus.

Last edited by berndbausch; 11-12-2018 at 12:55 AM.
 
1 members found this post helpful.
Old 11-12-2018, 12:52 AM   #5
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
In additions to the answers above, are you presented with either a .tar.gz tarball or a .rpm file download choices? If that is so, most of the time the .tar.gz file contains the source code (which you can compile on different platforms), and the rpm file contains the RPM installer (which of course you can only run on RPM-based systems).
 
1 members found this post helpful.
  


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] Any difference in rpm package of different distributions? rng Linux - General 5 12-06-2015 06:56 PM
DIfference Between YUM, RPM, and TAR Installs bill_kessler7@juno.com Linux - Newbie 5 10-19-2012 07:41 PM
Difference between a Tar ball and rpm ZAMO Linux - General 8 03-31-2007 11:05 PM
What is difference between an i386 rpm and an i686 rpm package? rajat Linux - Software 2 03-25-2007 10:55 PM
Difference between .src.rpm & .tar.gz packages chinmay nautiya Linux - Software 18 08-10-2006 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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