LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-08-2017, 05:39 AM   #1
below average linux user
LQ Newbie
 
Registered: Jul 2017
Posts: 5

Rep: Reputation: Disabled
offline packages installation


hello everyone, how do i install tar.bz2 and tar.xz files in linux mint 18.2 cinnamon. been at it since morning with no luck now my back aches and my mood's not good
thank you for your help
 
Old 07-08-2017, 05:50 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,344

Rep: Reputation: 3586Reputation: 3586Reputation: 3586Reputation: 3586Reputation: 3586Reputation: 3586Reputation: 3586Reputation: 3586Reputation: 3586Reputation: 3586Reputation: 3586
Welcome to LQ.
Quote:
how do i install tar.bz2 and tar.xz files
Depends of the application / the library you want to build.

1) Linux Mint has ~40,000 packages in the Package Manager / Synaptic.
.... Please use one of those (if available).
Off-line : Download the Mint packages/dependencies on another computer.
Or buy an Ubuntu 16.04 DVD set : Example → →
https://www.osdisc.com/products/linu...ory-64bit.html

2) Read the documentation for the item you want.
... Building software : There are about 15 different ways to start the build
http://www.linuxquestions.org/questi...-4175556531/#4


-

Last edited by knudfl; 07-08-2017 at 05:58 AM.
 
1 members found this post helpful.
Old 07-08-2017, 08:36 AM   #3
below average linux user
LQ Newbie
 
Registered: Jul 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
I want to install offline
 
Old 07-08-2017, 09:02 AM   #4
Mill J
Senior Member
 
Registered: Feb 2017
Location: 127.0.0.1 Sweet 127.0.0.1
Distribution: Void, MX, Haiku, Icaros, Puppy and many others
Posts: 1,002
Blog Entries: 2

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Quote:
Originally Posted by below average linux user View Post
I want to install offline
Ok you can't just install. tar.bz2 files. They are source code. To build and install them, extract the archive to a folder. Than cd to that folder, run ./configure than run ./make than run ./make install and that should do it. Most source code have Readme files that tell you how to compile.

Alright that said. I would recommend using rpm or deb files to install offline.
 
Old 07-08-2017, 09:25 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.3 MATE
Posts: 8,040
Blog Entries: 5

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Welcome to LQ, balu.

Please tell us which package(s) you are talking about and where you got it/them from (including URL(s)).
 
Old 07-08-2017, 09:33 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,465

Rep: Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117
Quote:
Originally Posted by below average linux user View Post
hello everyone, how do i install tar.bz2 and tar.xz files in linux mint 18.2 cinnamon. been at it since morning with no luck now my back aches and my mood's not good
thank you for your help
Best thing to recommend for any source programs is to read the instructions from the websites; most typically have them, as well as dependencies listed. The steps listed by Mill J are quite common, though, and may work for a good number of programs, but not all. Those are compressed files...first step would be uncompressing them. For the .tar.bz2 file, "tar xvfj <filename>.tar.bz2", and it'll get it done; "tar xpfv" for the .xz file. First step in learning Linux is to make friends with the online help, typically referred to as the "man pages". Type in "man tar", and it'll give you a list of all the options for the program. Same goes for any other Linux program.

From there, look in the files you just 'exploded', and you'll most probably find a file with something very obvious...like "INSTALL" "README", etc. Open that file up, and 99.x% of the time, installation/configuration instructions are contained in it.

But as others have pointed out, installing from package is FAR better, especially for a new user.
 
1 members found this post helpful.
Old 07-08-2017, 10:01 AM   #7
below average linux user
LQ Newbie
 
Registered: Jul 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
smplayer-17.7.0.tar.bz
vlc-2.2.6.tar.xz

got them from linuxsoftpedia



thanks guys, I think I just expected it to be quite simple and a bit intuitive, BTW I'm not complaining at all
 
Old 07-08-2017, 10:12 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.3 MATE
Posts: 8,040
Blog Entries: 5

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Thanks. Is there any specific reason that you're not installing the versions of both smplayer and vlc that are in the Mint 18.2 repos?

sudo apt-get install smplayer vlc

Your back won't hurt as much and your mood should improve.
 
1 members found this post helpful.
Old 07-08-2017, 11:10 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,465

Rep: Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117
Quote:
Originally Posted by below average linux user View Post
smplayer-17.7.0.tar.bz vlc-2.2.6.tar.xz

got them from linuxsoftpedia thanks guys, I think I just expected it to be quite simple and a bit intuitive, BTW I'm not complaining at all
It is intuitive; use the packages. No harder than using Windows and running "setup.exe", at the very least, but at least with Linux you have the option of installing from source, modifying it to suit your needs, or helping develop a feature you need/want.

Compiling from source CAN be done, but it is not as easy as typing in a single command, or checking a box in your GUI based software manager. As said, 99.x% of the software comes with a document (and if you look in those compressed files as said, you'll see the instructions) that tells you how to compile things. Bear in mind that software has dependencies. So before you can even compile the source code you have, you'll need the development libraries for any of the OTHER software that such things need, like audio/video codecs, etc. As hydrurga said, you can type in that one command, and your system will install EVERYTHING it needs automatically, and you're done.
 
1 members found this post helpful.
Old 07-08-2017, 11:58 AM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Theb only time I use a tar.{xz,bz2,gz} file is if the package does not exist in the repos, which is rare. But it has happened, especially in the more distant past. Windows is packaged with practically nothing, not even image burning software.

For Windows you look online for interesting programs, download them, install them, and eventually your system slows to a crawl when it's infested with malware!

With Linux you get everything; all hardware drivers (for the most part), and all software (in the repos), so you don't have to go slumming for packages online. If you need some program:
Code:
$ apt-cache search keyword
will help you find it.
 
2 members found this post helpful.
Old 07-10-2017, 02:58 AM   #11
below average linux user
LQ Newbie
 
Registered: Jul 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks a lot guys, now everything's fine
 
Old 07-10-2017, 05:49 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.3 MATE
Posts: 8,040
Blog Entries: 5

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Quote:
Originally Posted by below average linux user View Post
Thanks a lot guys, now everything's fine
That's great to hear. What did you do to resolve the problem?
 
Old 07-11-2017, 09:47 AM   #13
below average linux user
LQ Newbie
 
Registered: Jul 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
That's great to hear. What did you do to resolve the problem?
my system eventually connected to the internet so I just used the synaptics manager.

my initial problem was that my system did not want to connect to the internet which is why I had thought about offline installation.
 
Old 07-11-2017, 10:59 AM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.3 MATE
Posts: 8,040
Blog Entries: 5

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Quote:
Originally Posted by below average linux user View Post
my system eventually connected to the internet so I just used the synaptics manager.

my initial problem was that my system did not want to connect to the internet which is why I had thought about offline installation.
Ok. For info, you can always obtain the deb file for a package from the repos through another computer and then manually install the deb file rather than have to go back to source.

Of course, you will also have to obtain the deb files for any of the package's dependencies, if they are not already installed, and manually install those beforehand.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 to authenticate packages offline? pedros Linux - General 8 05-24-2017 11:53 PM
install packages offline falcon24 Linux - Newbie 2 09-15-2015 06:42 AM
920131 - how to install packages offline? hamidi2 Linux - Newbie 5 04-20-2013 10:27 AM
[SOLVED] Trouble with offline installation of packages theW Arch 4 08-12-2011 08:10 AM
LXer: "Sushi Huh?" - Easily Download Packages For Offline Installation In Debian, Ubu LXer Syndicated Linux News 0 12-05-2009 06:20 PM

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

All times are GMT -5. The time now is 01:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration