Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing an application outside of portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
389292
Guru
Guru


Joined: 26 Mar 2019
Posts: 504

PostPosted: Sat Dec 26, 2020 4:42 pm    Post subject: Installing an application outside of portage Reply with quote

I want to compile and install a simple C application which doesn't require 3rd party libraries, where should I put the binary for it to be system-wide and not conflict with portage (in case it has the same name application in the tree)? Is /opt/bin a good choice? Is there a Linux-wide FHS convention?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Dec 26, 2020 4:46 pm    Post subject: Reply with quote

/usr/local/bin
maybe?
It doesnt matter where you put it provided that u update the PATH variable to include the location.Is it a single binary only?
_________________
:)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Sat Dec 26, 2020 4:51 pm    Post subject: Reply with quote

See https://devmanual.gentoo.org/general-concepts/filesystem/index.html, /usr/local seems correct location
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
389292
Guru
Guru


Joined: 26 Mar 2019
Posts: 504

PostPosted: Sat Dec 26, 2020 4:54 pm    Post subject: Reply with quote

alamahant wrote:
/usr/local/bin
maybe?
It doesnt matter where you put it provided that u update the PATH variable to include the location.Is it a single binary only?

I know that I can put it anywhere if I have the PATH included. What I ask is more of a conventional way, if I use the same installation script for Debian or Arch, will they have the same PATHs included and directories created?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum