You are not logged in.

#1 2010-03-06 14:42:10

Marenz
Member
Registered: 2008-06-22
Posts: 48

Install target for packages

Greetings,

I was wondering why so many packages install to /opt/pkgname/ instead to /usr even packages that have a linux-compatible dir-structure.
Is there a specific reason for that, or is it just random?
I personally prefer to have the stuff in /usr so I don't need to change my PATH for every new package.

--Marenz

Offline

#2 2010-03-06 14:48:04

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: Install target for packages

What packages?
In my case, i don't have the folder /opt/pkgname/

Offline

#3 2010-03-06 14:57:49

Marenz
Member
Registered: 2008-06-22
Posts: 48

Re: Install target for packages

a lot .. see here:

ls /opt
NX          diet   google  java   makehuman   nexuiz  thinkingrock  wine
VirtualBox  doom3  hon     lib32  netradiant  qt      warsow

Offline

#4 2010-03-06 15:33:32

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: Install target for packages

i have only this:

$ ls /opt/
google  java  kde  lampp  qt

Last edited by n0dix (2010-03-06 15:33:51)

Offline

#5 2010-03-06 15:44:00

Marenz
Member
Registered: 2008-06-22
Posts: 48

Re: Install target for packages

Clarification: "pgkname" was just an placeholder for what ever folder they might install to.
and yes, your /opt is a perfect example for what I mean.


--Marenz

Offline

#6 2010-03-06 18:18:27

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: Install target for packages

/opt is intended for add-on software applications.

Check the FHS 2.3 definition smile
http://www.pathname.com/fhs/pub/fhs-2.3.pdf


Arch i686 on Phenom X4 | GTX760

Offline

#7 2010-03-07 14:47:37

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Install target for packages

When an application has images,preferences etc in non-standard directories, /opt is the best place to install it smile

Offline

Board footer

Powered by FluxBB