LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-04-2018, 10:50 PM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
different install package method


I know there are different kind of method to install package , eg . rpm install , make install etc ( may be there are other methods )

I know make install method could change the setting ( eg. path ) so it is more flexible way to install .

I just would like to know except the above difference , is there other difference between the different install methods ? what I need to consider to choose from different methods ?

thanks
 
Old 09-05-2018, 12:04 AM   #2
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
It all depends on *what* you want to install, and where it is available from.

Do not think other install methods are not flexible. To give an example, if you install a new kernel via yum/zypper, the installer creates a new initramfs file (so that it can load it on the next boot), updates grub2 configuration etc.


Here is a comprehensive answer. Feel free to search the web to get more insight.
 
1 members found this post helpful.
Old 09-05-2018, 12:04 AM   #3
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
Quote:
Originally Posted by catiewong View Post
I know there are different kind of method to install package , eg . rpm install , make install etc ( may be there are other methods )

I know make install method could change the setting ( eg. path ) so it is more flexible way to install .

I just would like to know except the above difference , is there other difference between the different install methods ? what I need to consider to choose from different methods ?
In the beginning, there were tarballs. You unpacked the tarball, found a bunch of source code files, compiled and linked them, and if you were lucky your application worked.

Of course, you may lack prerequisites such as specific compiler and library versions, and it was not possible to check that automatically. There wasn't even Google.

The situation was improved by an order of magnitude when your package was created with GNU's autoconf. If so, the tarball included a configure script, which checked for compiler, library and other versions, and generated a Makefile. You then just ran make, followed by make install. Done.

This method is often still used, especially for new software. It still requires you to track installed packages manually. I don't think it allows you to remove a package, or to verify its integrity.

Enter Debian with its deb format, and Red Hat with the rpm format. These are archives of binaries that contain a lot of metadata about a package: Packages that need to be installed as prerequisites, expected file permissions and content, and more. Installing from a deb or rpm file doesn't require compilation. Prerequisites are checked automatically. A package database is used to keep track of everything that's installed. Packages can be verified, signed, deleted, ....

What's still missing is automatic installation of missing prerequisites. This is achieved by the super comfortable apt, yum, zypper, pacman etc tools. You can now install software without much thinking (some people criticize that, such as the Slackware community).

So here you are. You can use the autoconf method nowadays. It forces you to use the source code and to be very careful what you are doing. You can use the more comfortable methods - they also allow you to install files in non-default locations, but normally, they do all the tedious work and some of the thinking for you.

Depending on the distro, you have deb or rpm, or something else. Again depending on the distro, you have yum, zypper, apt and so on. autoconf is available everywhere.
 
1 members found this post helpful.
Old 09-05-2018, 07:12 AM   #4
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by berndbausch View Post
Depending on the distro, you have deb or rpm, or something else. Again depending on the distro, you have yum, zypper, apt and so on. autoconf is available everywhere.
Plus you also get notified of any optional easy updates as soon as any bug fixes etc become available.

You have to recompile non-packaged tarballs yourself whenever a new version is released.
 
Old 09-05-2018, 09:47 AM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Obviously you will use whatever your distribution provides. You can see the differences here:
https://distrowatch.com/dwres.php?re...age-management
but that's just the bare bones. A command like "man apt-get" or "man dnf" will reveal an incredible variety of options in most systems.
 
  


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
Package Users method on LFS Wayne Sallee Linux From Scratch 40 09-13-2015 10:35 PM
install Dr. Alard's isis package (image subtraction method) yba Linux - Software 5 04-06-2015 08:42 PM
Is there a method that is in between a package manager but not adding RPMs manually theKbStockpiler Linux - General 8 11-11-2010 05:05 PM
which method is better for building deb package kushalkoolwal Debian 10 02-02-2008 06:58 AM
perl install error: Can't locate object method "new" via package "Module::Build::Vers powah Linux - Software 0 10-24-2006 01:57 PM

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

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