Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 423  / 2 Years ago, wed, january 26, 2022, 7:52:08

I wanted to install polybar-themes and one of the dependencies was networkmanager_dmenu so, i want to install it. Im on Ubuntu 20.04 and only valid option there for me is: Copy script somewhere into $PATH I have no idea on how to implement this, can someone explain this to me?


More From » bash

 Answers
1

PATH is an environmental variable that contains a list of directories where the system searches for an executable that matched a command. See here for more information. The contents can be seen in your terminal with the command


echo $PATH

In theory, you thus could have your install program look at the directories in there, and install it in one of the directories listed.


However, there are conventions on the use of directories. sbins directories are intended for system binaries, bin directories for all other executables. You thus will select a bin directory:



  • If you distribute your executable (your script) through the packaging system of your distribution, place it in /usr/bin. For Ubuntu, this means your software is packaged as a .deb installation file.

  • If your script is a custom installation script, then place your executable in /usr/local/bin. That directory is not managed by the packaging system of the operating system.


[#834] Wednesday, January 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nstitutencert

Total Points: 171
Total Questions: 126
Total Answers: 124

Location: Azerbaijan
Member since Fri, May 12, 2023
1 Year ago
nstitutencert questions
Fri, Dec 10, 21, 16:31, 2 Years ago
Tue, Apr 19, 22, 05:51, 2 Years ago
Sun, Aug 29, 21, 21:43, 3 Years ago
Mon, Jan 30, 23, 06:54, 1 Year ago
;