Sudo user centos6/21/2023 ![]() ![]() TL DR Use Miniconda, conda-forge is amazing. If so, have a look at this repository.Įxtra note: if you are trying to install any of gcc, zlib, make, cmake, git, fish, zsh or tmux, you should really consider using conda, see my other answer. 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 -i means extract (to the current directory).cd ~/centos & rpm2cpio ~/rpm/x.rpm | cpio -id rpm packages to your chosen prefix location. If your home is slow because it is on a network file system, you can put it in /var/tmp/. Yumdownloader -destdir ~/rpm -resolve vim-common yumdownloader downloads to the current directory unless you specify a -destdir. You'll need to pass it -resolve to get dependency resolution. Here is the recipe: Find the package nameĭownload the package and all of its dependencies using yumdownloader (which is available on CentOS by default). It is possible to use yum and rpm to install any package in the repository of the distribution. ![]()
0 Comments
Leave a Reply. |