Now if you want to install a lot of packages that way, you might want to automate the process. If Bash determines it is being run in this fashion, it reads and executes commands from ~/.bashrc, if that file exists and is readable. bashrc is sourced: Invoked by remote shell daemonīash attempts to determine when it is being run with its standard input connected to a network connection, as when executed by the remote shell daemon, usually rshd, or the secure shell daemon sshd. Here is the corresponding sample from my ~/.bashrc: export PATH="$HOME/centos/usr/sbin:$HOME/centos/usr/bin:$HOME/centos/bin:$PATH"Įxport MANPATH="$HOME/centos/usr/share/man:$MANPATH"Įxport LD_LIBRARY_PATH="$HOME/centos/usr/lib:$HOME/centos/usr/lib64:$L"Įdited note (thanks to for pointing out my mistake):Īccording to bash documentation about startup files, when connecting to a server via ssh, only. You will need to configure the environment variable PATH and LD_LIBRARY_PATH for the installed packages to work correctly. You can optionally use -v: verbose Configure the environment
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |