1.
$HOME/local/bin
- This directory is typically used for locally installed software that you want to manage yourself.
- You would generally use $HOME/local/bin if you manually install software in your home directory, such as when compiling from source.
- It’s a good practice to use this directory for custom software installations that you want to keep separate from system-wide installed packages.
2.
$HOME/.local/bin
- This directory is used by some package management tools and applications, particularly for user-level installation and user-specific software.
- It is often automatically used by tools like pip (Python package manager), cargo (Rust package manager), and other software that installs in the user’s home directory.
- Many Linux distributions also use .local/bin as the default directory for user-specific programs to avoid conflicts with system-level software.
Which Directory is Suitable for Installing Programs on HPC?
It depends on your use case:
- If you are manually compiling and installing software (e.g., Midnight Commander), $HOME/local/bin is typically the more suitable directory to use. This directory is more commonly associated with software you install yourself and is less likely to conflict with other tools or package managers.
- If you’re using a package manager (like pip for Python, cargo for Rust), those tools will typically use $HOME/.local/bin by default. In that case, you don’t need to manually set up directories — they will manage the installation location for you.
Recommendation
For manually installed software (e.g., from source), I recommend using $HOME/local/bin. If you’re using a package manager that automatically installs software, $HOME/.local/bin is likely the default and is fine for that purpose.
'HPC' 카테고리의 다른 글
생각해 볼 것 (0) | 2025.04.14 |
---|---|
Ncurses (0) | 2025.04.14 |
MC(Midnight Commaner) on NURION (0) | 2025.04.13 |
NURION사용시 필요한 라이브러리들 (0) | 2025.04.10 |
Tmux on NURION (0) | 2025.04.10 |