LinuxQuestions.org
Help answer threads with 0 replies.
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 06-14-2016, 02:14 PM   #1
rickim
Member
 
Registered: Jun 2016
Distribution: Mint 17.3 Cinnamon
Posts: 31

Rep: Reputation: Disabled
Need command to install txz package in Mint


How to install Calibre (ebook app) in Mint from uncompressed txz package on HD. Any solutions available for this prob? Is there a recommended installer to do this? The Calibre in the repository is ancient so i'm trying to install a current package.
TYVM
 
Old 06-14-2016, 02:19 PM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18 MATE, Solus 3 MATE, antiX-17, MX-16
Posts: 2,168
Blog Entries: 9

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
rickim,

In Terminal:

Code:
sudo apt-get install calibre
 
Old 06-14-2016, 02:23 PM   #3
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware, Fedora
Posts: 1,025

Rep: Reputation: 666Reputation: 666Reputation: 666Reputation: 666Reputation: 666Reputation: 666
What does the .txz package contain, exactly?

Code:
tar tvf path/to/calibre.txz
Presumably it contains files that are a part of Calibre, ready to be copied to your hard drive. However, they may not need a special install process; maybe it will work from its own folder. So the first thing I'd try is to untar it and launch Calibre from the resulting directory.

If that doesn't work, then maybe it does want to be installed. There may be a README file in the .txz package telling you how to do that (`python setup.py install` or some such command).

If there's no instructions, and it won't run on its own, then maybe it really does need to be installed. Well, "installed" just means that you copy files to specific places on your drive. So possibly, if you copy everything in the usr folder to your hard drive's /usr directory, and anything in etc to your drive's /etc, and so on, then you'll have, essentially, installed Calibre, manually. In fact, if the .txz package is an exact mirror of the Linux file system, you can technically just untar it to your root directory and everything will fall into place.

That said, it's unusual for Mint to get an install from a raw .txz archive, so I'd be careful trying that. Try the first two options first.

A link to the txz so we could see it ourselves and advise you better might be helpful.
 
Old 06-14-2016, 02:26 PM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,478
Blog Entries: 2

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
Quote:
Originally Posted by beachboy2 View Post
rickim,

In Terminal:

Code:
sudo apt-get install calibre
Well, he says he needs a more modern version than the repo provides. I looked on the calibre site and they do a linux binary with built-in versions of all the dependencies. You can find it at https://calibre-ebook.com/download_linux. They also say:
Quote:
Please do not use your distribution provided calibre package, as those are often buggy/outdated. Instead use the Binary install described below.
So that's worth trying.
 
Old 06-14-2016, 02:27 PM   #5
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,591
Blog Entries: 15

Rep: Reputation: Disabled
The instructions are very clear on how to do this
Code:
sudo mkdir -p /opt/calibre && sudo rm -rf /opt/calibre/* && sudo tar xvf /path/to/downloaded/calibre-tarball.txz -C /opt/calibre && sudo /opt/calibre/calibre_postinstall
and comes with a dire warning:

Source Install:
Warning: WARNING: calibre is a highly complex piece of software with lots of very finicky dependencies. If you install from source, you are on your own. Please do not open bug reports or expect any form of support. You have been warned.


Please gives us the output of
Code:
inxi -c0 -Fsz | pastebin
so I can find you a PPA to use.

Thank you.

Last edited by Habitual; 06-14-2016 at 02:33 PM.
 
1 members found this post helpful.
Old 06-14-2016, 02:31 PM   #6
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 18 MATE, Solus 3 MATE, antiX-17, MX-16
Posts: 2,168
Blog Entries: 9

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
Smile

hazel,

Quote:
Well, he says he needs a more modern version than the repo provides.
I missed that bit.

I must get my money back from that speed reading course!
 
Old 06-14-2016, 02:33 PM   #7
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,478
Blog Entries: 2

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
Habitual, your quotes are for installing from source, which they warn against precisely because of that list of dependencies. If you look higher up on the same web page, you'll see the binary install that I wrote about. That has internal versions of the dependencies, probably similar to the ones you get with a Firefox binary.

Last edited by hazel; 06-14-2016 at 02:34 PM.
 
Old 06-14-2016, 02:36 PM   #8
rickim
Member
 
Registered: Jun 2016
Distribution: Mint 17.3 Cinnamon
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
rickim,

In Terminal:

Code:
sudo apt-get install calibre
Wow. It installed completely. I was amazed at the complexity of the installation process elicited by such a simple command... I had been searching for over 6hrs for that answer. Thank you again, sir.
 
Old 06-14-2016, 02:44 PM   #9
rickim
Member
 
Registered: Jun 2016
Distribution: Mint 17.3 Cinnamon
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by notKlaatu View Post
What does the .txz package contain, exactly?

Code:
tar tvf path/to/calibre.txz
Presumably it contains files that are a part of Calibre, ready to be copied to your hard drive. However, they may not need a special install process; maybe it will work from its own folder. So the first thing I'd try is to untar it and launch Calibre from the resulting directory.



If that doesn't work, then maybe it does want to be installed. There may be a README file in the .txz package telling you how to do that (`python setup.py install` or some such command).

If there's no instructions, and it won't run on its own, then maybe it really does need to be installed. Well, "installed" just means that you copy files to specific places on your drive. So possibly, if you copy everything in the usr folder to your hard drive's /usr directory, and anything in etc to your drive's /etc, and so on, then you'll have, essentially, installed Calibre, manually. In fact, if the .txz package is an exact mirror of the Linux file system, you can technically just untar it to your root directory and everything will fall into place.

That said, it's unusual for Mint to get an install from a raw .txz archive, so I'd be careful trying that. Try the first two options first.

A link to the txz so we could see it ourselves and advise you better might be helpful.
If you like ebooks & are looking for an incredible app to do everything with them, here is the url: https://calibre-ebook.com/download_linux

You will probably be amazed.
 
Old 06-14-2016, 02:47 PM   #10
rickim
Member
 
Registered: Jun 2016
Distribution: Mint 17.3 Cinnamon
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
rickim,

in terminal:

Code:
sudo apt-get install calibre
perfect! Solved!
 
Old 06-14-2016, 04:51 PM   #11
rickim
Member
 
Registered: Jun 2016
Distribution: Mint 17.3 Cinnamon
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rickim View Post
How to install Calibre (ebook app) in Mint from uncompressed txz package on HD. Any solutions available for this prob? Is there a recommended installer to do this? The Calibre in the repository is ancient so i'm trying to install a current package.
TYVM
Thought it was solved but unfortunately [sudo apt-get install calibre] installed the old ver from the repository. The new ver on my HD (/Downloads) is much better in terms of file format conversion and other capabilities. Is there a way to overwrite the old ver with the new ver on my HD?

Last edited by rickim; 06-14-2016 at 05:02 PM. Reason: yes
 
Old 06-14-2016, 05:02 PM   #12
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware, Fedora
Posts: 1,025

Rep: Reputation: 666Reputation: 666Reputation: 666Reputation: 666Reputation: 666Reputation: 666
Habitual's instructions
http://www.linuxquestions.org/questi...3/#post5560856

are the correct answer.

You should remove the old version first:

Code:
sudo apt-get remove --purge packagename
then follow Habitual's link to the instructions on the Calibre site.

In the future, look up the random commands people tell you to run; if you'd read up on `apt-get` before running it, you'd have seen that it was pulling the package from the repository - the thing you specifically said you did not want.

Also, when asking about specific packages that you have downloaded from the 'net, why not provide a link to it, so we could have seen it ourselves and advised you more accurately from the beginning?

Last edited by notKlaatu; 06-14-2016 at 05:04 PM.
 
1 members found this post helpful.
Old 06-14-2016, 05:07 PM   #13
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,591
Blog Entries: 15

Rep: Reputation: Disabled
Yes, purge the old.
Code:
sudo apt-get remove --purge calibre
I read at Install Calibre 2.49 on Ubuntu 15.10, Ubuntu 15.04, Ubuntu 14.04, via PPA you can then do

Code:
sudo add-apt-repository ppa:n-muench/programs-ppa
sudo apt-get update
sudo apt-get install calibre
should install Calibre 2.49 ("Current" is 2.55)

Have fun!

LinuxMint 17.x is equal to Ubuntu 14.x

Last edited by Habitual; 06-14-2016 at 05:11 PM.
 
Old 06-14-2016, 05:24 PM   #14
rickim
Member
 
Registered: Jun 2016
Distribution: Mint 17.3 Cinnamon
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by notKlaatu View Post
Habitual's instructions
http://www.linuxquestions.org/questi...3/#post5560856

are the correct answer.

You should remove the old version first:

Code:
sudo apt-get remove --purge packagename
then follow Habitual's link to the instructions on the Calibre site.

In the future, look up the random commands people tell you to run; if you'd read up on `apt-get` before running it, you'd have seen that it was pulling the package from the repository - the thing you specifically said you did not want.

Also, when asking about specific packages that you have downloaded from the 'net, why not provide a link to it, so we could have seen it ourselves and advised you more accurately from the beginning?
TYVM - that was dead center perfect... the new ver is much better - Now understand that the despription "Binary install" on a DL site is just a generic term. I first saw those command lines prior to manually DLing the package but concluded that the installation could not POSSIBLY be that streamlined.

Thanks again.
 
  


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 install only Writer from Libreoffice package"libreoffice-4.0.3-i486-1alien.txz just.srad Slackware 10 05-30-2013 03:37 PM
Creating a txz install package from source mitusf Slackware 7 10-11-2012 06:19 AM
Which package manager do you like more, TXZ or Pacman? Amdx2_x64 Linux - Distributions 9 12-25-2010 02:41 AM
[SOLVED] Is there any openoffice-org.txz prebuilt package? cola Slackware 4 12-26-2009 07:24 AM
how to make slackware package txz hoanglong1712 Slackware 4 09-20-2009 09:19 AM

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

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