You are not logged in.

#1 2017-07-28 11:36:07

LinG
Member
Registered: 2017-07-23
Posts: 35

[SOLVED] Difference installing with sudo copared to su

I was wondering if there is a difference if you install applications in the following two ways (since I've been doing both, kind of at random...)

1.

su root
pacman -S *app*

2.

sudo pacman -S *app*

Last edited by LinG (2017-07-28 11:50:36)

Offline

#2 2017-07-28 11:37:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] Difference installing with sudo copared to su

Offline

#3 2017-07-28 11:41:57

LinG
Member
Registered: 2017-07-23
Posts: 35

Re: [SOLVED] Difference installing with sudo copared to su

Did that... I'm not asking the difference between su and sudo, I'm wondering if there is a difference in the installation process of applications, for example, the location where the application is installed. (I think the answer is no, but I just wanted to check to be sure)

Last edited by LinG (2017-07-28 11:44:49)

Offline

#4 2017-07-28 11:47:35

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: [SOLVED] Difference installing with sudo copared to su

In this scenario, all pacman cares about is if it's running as root, it doesn't care how it's running as root. Why would it?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2017-07-28 18:16:57

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Difference installing with sudo copared to su

LinG wrote:

Did that... I'm not asking the difference between su and sudo, I'm wondering if there is a difference in the installation process of applications, for example, the location where the application is installed. (I think the answer is no, but I just wanted to check to be sure)

I suppose pacman could try examining the process tree to see what parent process started it, then change its behavior based on that. But why do you think someone might have coded that behavior?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB