xinstall: Easy Cross-platform Installation and Configuration of Apps
:::bash
pip3 install -U xinstall
-
Run
xinstall -hfor the help doc. -
Below is an example of install SpaceVim and configure it.
xinstall svim -ic -
In case
xinstallis not on the search path, you can usepython3 -m xinstall.maininstead. For example, to check the help doc.python3 -m xinstall.main -h
xinstall has 3 levels of sudo permission.
- (L1) Non-root user running
xinstall subcmd -ic: nosudopermission - (L2) Non-root user running
xinstall --sudo subcmd -ic:sudois called when necessary - (L3) Non-root user running
sudo xinstall subcmd -ic: root permission everywhere - (L3) root user running
xinstall subcmd -ic: root permission everywhere
The suggested way is to run xinstal --sudo subcmd -ic using non-root user if sudo permission is required.
sudo xinstall subcmd -ic might have side effect as some tools are installed to the local user directory,
in which case sudo xinstall subcmd -ic installs the tool into /root/
which might not what you wwant.
Some tools used by xinstall respect environment variables http_proxy and https_proxy.
Exporting those 2 evironment variable will make most part of xinstall work if proxy is required.
export http_proxy=http://server_ip:port
export https_proxy=http://server_ip:port