help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /etc/profile


From: Yuri Kanivetsky
Subject: Re: /etc/profile
Date: Wed, 18 Dec 2024 06:17:56 +0200

> It has the disadvantage that it forces a full environment cleanse,
> including a change of working directory.  So, workflow patterns like
> this one will break:
>
>     $ cd my/deep/source/directory
>     $ make
>     $ su -
>     # make install
>     make: error, there's no makefile here, what's an install?

Actually in such cases I use sudo. I'm not sure if it's better than su
(without -), but that's what I do. Another case is `sudo chown`.

On the other hand I prefer to not install software from source on a
host. Locally (Arch Linux) I do (basically) install software from
source. For that I use makepkg, which uses sudo. On servers these days
if I need to build something from source I build a docker image.
Actually most of the software on servers I run in docker containers.
Except for something non-essential like less, htop, vim, ripgrep, you
name it.

Regards,
Yuri



reply via email to

[Prev in Thread] Current Thread [Next in Thread]