Last active
August 23, 2022 07:21
-
-
Save anamorph/9256da3392dc34f21d99 to your computer and use it in GitHub Desktop.
OpenBSD-install-awscli_aws-shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# uname -a | |
OpenBSD foo.openlab.fr 5.8 GENERIC#1170 amd64 | |
# export PKG_PATH=http://ftp2.fr.openbsd.org/pub/OpenBSD/`uname -r`/packages/`arch -s`/ | |
# pkg_add python | |
quirks-2.114 signed on 2015-08-09T11:57:52Z | |
quirks-2.114: ok | |
Ambiguous: choose package for python | |
a 0: <None> | |
1: python-2.7.10 | |
2: python-3.4.3 | |
Your choice: 1 | |
python-2.7.10:libiconv-1.14p3: ok | |
python-2.7.10:gettext-0.19.5.1: ok | |
python-2.7.10:libffi-3.1p0: ok | |
python-2.7.10:bzip2-1.0.6p1: ok | |
python-2.7.10: ok | |
--- +python-2.7.10 ------------------- | |
If you want to use this package as your default system python, as root | |
create symbolic links like so (overwriting any previous default): | |
ln -sf /usr/local/bin/python2.7 /usr/local/bin/python | |
ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3 | |
ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config | |
ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc | |
# ln -sf /usr/local/bin/python2.7 /usr/local/bin/python | |
# ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3 | |
# ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config | |
# ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc | |
# pkg_add py-pip py-boto | |
quirks-2.114 signed on 2015-08-09T11:57:52Z | |
py-pip-7.1.0:py-setuptools-3.4.4p2v0: ok | |
py-pip-7.1.0: ok | |
py-boto-2.28.0:py-requests-2.7.0: ok | |
py-boto-2.28.0:py-ecdsa-0.13: ok | |
py-boto-2.28.0:gmp-5.0.2p3: ok | |
py-boto-2.28.0:py-crypto-2.6.1p0: ok | |
py-boto-2.28.0:py-paramiko-1.15.2: ok | |
py-boto-2.28.0:libyaml-0.1.6p1: ok | |
py-boto-2.28.0:py-yaml-3.11p0: ok | |
py-boto-2.28.0: ok | |
--- +py-pip-7.1.0 ------------------- | |
If you want to use this package as default pip, as root create a | |
symbolic link like so (overwriting any previous default): | |
ln -sf /usr/local/bin/pip2.7 /usr/local/bin/pip | |
# ln -sf /usr/local/bin/pip2.7 /usr/local/bin/pip | |
# pip install --upgrade pip | |
You are using pip version 7.1.0, however version 7.1.2 is available. | |
You should consider upgrading via the 'pip install --upgrade pip' command. | |
Collecting pip | |
Downloading pip-7.1.2-py2.py3-none-any.whl (1.1MB) | |
100% |################################| 1.1MB 149kB/s | |
Installing collected packages: pip | |
Found existing installation: pip 7.1.0 | |
Uninstalling pip-7.1.0: | |
Successfully uninstalled pip-7.1.0 | |
Successfully installed pip-7.1.2 | |
# pip install awscli aws-shell | |
Collecting awscli | |
Downloading awscli-1.9.15-py2.py3-none-any.whl (852kB) | |
100% |################################| 856kB 188kB/s | |
Collecting aws-shell | |
Downloading aws-shell-0.1.0.tar.gz (52kB) | |
100% |################################| 53kB 931kB/s | |
Collecting rsa<=3.3.0,>=3.1.2 (from awscli) | |
Downloading rsa-3.2.3-py2.py3-none-any.whl (44kB) | |
100% |################################| 45kB 1.1MB/s | |
Collecting botocore==1.3.15 (from awscli) | |
Downloading botocore-1.3.15-py2.py3-none-any.whl (2.1MB) | |
100% |################################| 2.1MB 106kB/s | |
Collecting colorama<=0.3.3,>=0.2.5 (from awscli) | |
Downloading colorama-0.3.3.tar.gz | |
Collecting docutils>=0.10 (from awscli) | |
Downloading docutils-0.12.tar.gz (1.6MB) | |
100% |################################| 1.6MB 90kB/s | |
Collecting prompt-toolkit==0.52 (from aws-shell) | |
Downloading prompt_toolkit-0.52-py2-none-any.whl (188kB) | |
100% |################################| 188kB 362kB/s | |
Collecting boto3<2.0.0,>=1.2.1 (from aws-shell) | |
Downloading boto3-1.2.3-py2.py3-none-any.whl (108kB) | |
100% |################################| 110kB 681kB/s | |
Collecting configobj<6.0.0,>=5.0.6 (from aws-shell) | |
Downloading configobj-5.0.6.tar.gz | |
Collecting pyasn1>=0.1.3 (from rsa<=3.3.0,>=3.1.2->awscli) | |
Downloading pyasn1-0.1.9-py2.py3-none-any.whl | |
Collecting jmespath<1.0.0,>=0.7.1 (from botocore==1.3.15->awscli) | |
Downloading jmespath-0.9.0-py2.py3-none-any.whl | |
Collecting python-dateutil<3.0.0,>=2.1 (from botocore==1.3.15->awscli) | |
Downloading python_dateutil-2.4.2-py2.py3-none-any.whl (188kB) | |
100% |################################| 192kB 209kB/s | |
Collecting six>=1.9.0 (from prompt-toolkit==0.52->aws-shell) | |
Downloading six-1.10.0-py2.py3-none-any.whl | |
Collecting pygments (from prompt-toolkit==0.52->aws-shell) | |
Downloading Pygments-2.0.2-py2-none-any.whl (672kB) | |
100% |################################| 675kB 229kB/s | |
Collecting wcwidth (from prompt-toolkit==0.52->aws-shell) | |
Downloading wcwidth-0.1.5-py2.py3-none-any.whl | |
Collecting futures<4.0.0,>=2.2.0 (from boto3<2.0.0,>=1.2.1->aws-shell) | |
Downloading futures-3.0.3-py2-none-any.whl | |
Installing collected packages: pyasn1, rsa, jmespath, six, python-dateutil, docutils, botocore, colorama, awscli, pygments, wcwidth, prompt-toolkit, futures, boto3, configobj, aws-shell | |
Running setup.py install for docutils | |
Running setup.py install for colorama | |
Running setup.py install for configobj | |
Running setup.py install for aws-shell | |
Successfully installed aws-shell-0.1.0 awscli-1.9.15 boto3-1.2.3 botocore-1.3.15 colorama-0.3.3 configobj-5.0.6 docutils-0.12 futures-3.0.3 jmespath-0.9.0 prompt-toolkit-0.52 pyasn1-0.1.9 pygments-2.0.2 python-dateutil-2.4.2 rsa-3.2.3 six-1.10.0 wcwidth-0.1.5 | |
# aws configure | |
AWS Access Key ID [None]: *************** | |
AWS Secret Access Key [None]: ****************************** | |
Default region name [None]: eu-west-1 | |
Default output format [None]: json | |
# aws ec2 describe-security-groups --query 'SecurityGroups[*].{Name:GroupName}' | |
[ | |
{ | |
"Name": "default" | |
} | |
] | |
# aws --version | |
aws-cli/1.9.15 Python/2.7.10 OpenBSD/5.8 botocore/1.3.15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for updating !