LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-25-2014, 01:18 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Rep: Reputation: Disabled
Where to locate software applications


I previously installed wkhtmltopdf as follows:
Code:
wget https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.10.0_rc2-static-amd64.tar.bz2
tar -xvzf wkhtmltopdf-0.10.0_rc2-static-amd64.tar.bz2 -C /opt
chmod +x wkhtmltopdf-amd64
mv wkhtmltopdf-amd64 /usr/local/bin/wkhtmltopdf
wkhtmltopdf no longer is hosted by googlecode, and I found a new version. Attempting to do the following resulted in errors due to the xz file type, but I eventually got it installed.
Code:
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.0/wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz
tar -xvJf wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz -C /opt
The software is now installed at /opt/wkhtmltox/bin/wkhtmltopdf.

According to http://www.linuxtopia.org/online_boo...ystem/opt.html, this is "This directory is reserved for all the software and add-on packages that are not part of the default installation" Should I leave it here and not move it to /usr/local/bin/wkhtmltopdf? Do I no longer need to make it executable using chmod as I originally did (also, why not)?

Thanks
 
Old 03-25-2014, 09:21 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,340
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
It is perfectly okay to leave it in /opt, if that's where it wants to be.

As for needing to make it executable, what does

Code:
ls -l /opt/wkhtmltox/bin/wkhtmltopdf
tell you?

On my Debian system, both Googleearth and XAMPP installed to /opt and they are quite happy there.

Last edited by frankbell; 03-25-2014 at 09:22 PM.
 
Old 03-26-2014, 06:44 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
It is perfectly okay to leave it in /opt, if that's where it wants to be.

On my Debian system, both Googleearth and XAMPP installed to /opt and they are quite happy there.
Are they more happy than if located at /usr/local or /usr/local/bin? I won't bother moving it, just curious why different locations are used.

Quote:
Originally Posted by frankbell View Post
As for needing to make it executable, what does

Code:
ls -l /opt/wkhtmltox/bin/wkhtmltopdf
tell you?
It tells me I don't need to do so as it already is executable to all. You know, this Linux thing is finally starting to make sense
 
Old 03-26-2014, 08:55 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,340
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
I wouldn't consider trying to move them, because I'd have to move all their libraries and stuff and would probably break stuff.

/opt was created for user-installed (that is, optional) programs, though not many software packages use it these days.
 
  


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
Installing software with scons but cannot locate motif library budgie26 Linux - Software 2 03-18-2013 11:12 PM
cpan> locate -u Unknown shell command 'locate -u'. Type ? for help. sharad2005 Linux From Scratch 1 08-04-2006 01:40 AM
where the applications locate installed in rpm way? cnwillow Linux - Newbie 1 11-18-2003 03:46 AM


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