Install a program separate from the whole system.

New to Debian (Or Linux in general)? Ask your questions here!

Install a program separate from the whole system.

Postby hack3rcon » 2021-02-03 08:24

Hello,
I want to install a program, but separate from the whole system. For example, I have a "Brave Browser" on my system, I downloaded the source code of it and want to change some parts of it, install and test it, but I don't like the "Brave Browser" on my system be spoiled.
How can I do it? I know an option is using a VM or container, but how about other options?

Thank you.
hack3rcon
 
Posts: 516
Joined: 2015-02-16 09:54

Re: Install a program separate from the whole system.

Postby reinob » 2021-02-03 10:42

Most programs are configured to be installed under /usr/local, while most distributions configure them to be installed under /usr.

So when you do your ./configure && make && make install dance, you just have to make sure the PREFIX is not /usr, but /usr/local, or, if OK, some path in your home (like "./configure --prefix=/home/software/" or such).

Whether that works or not with the Brave Browser is something you will have to check. I don't even know if they use autoconf.
reinob
 
Posts: 900
Joined: 2014-06-30 11:42

Re: Install a program separate from the whole system.

Postby Head_on_a_Stick » 2021-02-03 14:29

Brave appears to use npm for the build. Good luck with that.

https://www.keithcirkel.co.uk/how-to-us ... uild-tool/
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13262
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Install a program separate from the whole system.

Postby stevepusser » 2021-02-03 19:26

reinob wrote:Most programs are configured to be installed under /usr/local, while most distributions configure them to be installed under /usr.

So when you do your ./configure && make && make install dance, you just have to make sure the PREFIX is not /usr, but /usr/local, or, if OK, some path in your home (like "./configure --prefix=/home/software/" or such).

Whether that works or not with the Brave Browser is something you will have to check. I don't even know if they use autoconf.


And good luck if you think compiling a Chromium-based browser is a simple matter of "configure, make, make install".

I would suggest you rebuild Debian's Chromium from its source in order to get some idea of how long something like that takes!

The one in Sid is supposed to build on stock Buster, but hasn't been backported yet for some reason...
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12233
Joined: 2009-10-06 05:53

Re: Install a program separate from the whole system.

Postby hack3rcon » 2021-02-04 13:26

Thus, a VM is easiest way?
hack3rcon
 
Posts: 516
Joined: 2015-02-16 09:54

Re: Install a program separate from the whole system.

Postby Head_on_a_Stick » 2021-02-04 15:35

A container is easier and the performance will be better. Check the HowTo section for a guide to using systemd-nspawn.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13262
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable