AKAI TSUKI

System development or Technical something

Install Jupyter Notebook by pip3.5 in CentOS 7 and python 3.5

Commadn list

After Install python 3.5 in CentOS 7(docker container) - AKAI TSUKI

  • install jupyter notebook
# find / -name "pip*"
# pip3.5 -V
# pip3.5 install jupyter

Detail

[root@519dd98187dd /]# find / -name "pip*"
/usr/bin/pip3.5
/usr/lib/python3.5/site-packages/pip
/usr/lib/python3.5/site-packages/pip-9.0.1-py3.5.egg-info
/usr/lib64/python2.7/pipes.py
/usr/lib64/python2.7/pipes.pyc
/usr/lib64/python2.7/pipes.pyo
/usr/lib64/python3.5/__pycache__/pipes.cpython-35.opt-1.pyc
/usr/lib64/python3.5/__pycache__/pipes.cpython-35.opt-2.pyc
/usr/lib64/python3.5/__pycache__/pipes.cpython-35.pyc
/usr/lib64/python3.5/pipes.py
/usr/lib64/python3.5/ensurepip/_bundled/pip-9.0.1-py2.py3-none-any.whl
/usr/share/bash-completion/completions/pip3.5
/proc/sys/fs/pipe-max-size
[root@519dd98187dd /]# pip3.5 -V
pip 9.0.1 from /usr/lib/python3.5/site-packages (python 3.5)
[root@519dd98187dd /]# pip3.5 install jupyter
Collecting jupyter
  Downloading jupyter-1.0.0-py2.py3-none-any.whl
Collecting nbconvert (from jupyter)
  Downloading nbconvert-5.1.1-py2.py3-none-any.whl (372kB)
    100% |################################| 378kB 2.9MB/s
Collecting notebook (from jupyter)
  Downloading notebook-4.4.1-py2.py3-none-any.whl (6.9MB)
    100% |################################| 6.9MB 238kB/s
Collecting ipywidgets (from jupyter)
  Downloading ipywidgets-5.2.2-py2.py3-none-any.whl (43kB)
    100% |################################| 51kB 3.1MB/s
Collecting qtconsole (from jupyter)
  Downloading qtconsole-4.2.1-py2.py3-none-any.whl (104kB)
    100% |################################| 112kB 3.7MB/s
Collecting jupyter-console (from jupyter)
  Downloading jupyter_console-5.1.0-py2.py3-none-any.whl
Collecting ipykernel (from jupyter)
  Downloading ipykernel-4.5.2-py2.py3-none-any.whl (98kB)
    100% |################################| 102kB 3.6MB/s
Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter)
  Downloading pandocfilters-1.4.1.tar.gz
Collecting jinja2 (from nbconvert->jupyter)
  Downloading Jinja2-2.9.5-py2.py3-none-any.whl (340kB)
    100% |################################| 348kB 1.5MB/s
Collecting entrypoints>=0.2.2 (from nbconvert->jupyter)
  Downloading entrypoints-0.2.2-py2.py3-none-any.whl
Collecting bleach (from nbconvert->jupyter)
  Downloading bleach-1.5.0-py2.py3-none-any.whl
Collecting mistune!=0.6 (from nbconvert->jupyter)
  Downloading mistune-0.7.3-py2.py3-none-any.whl
Collecting pygments (from nbconvert->jupyter)
  Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)
    100% |################################| 849kB 1.3MB/s
Collecting testpath (from nbconvert->jupyter)
  Downloading testpath-0.3-py2.py3-none-any.whl (82kB)
    100% |################################| 92kB 4.1MB/s
Collecting traitlets>=4.2 (from nbconvert->jupyter)
  Downloading traitlets-4.3.1-py2.py3-none-any.whl (74kB)
    100% |################################| 81kB 5.2MB/s
Collecting jupyter-core (from nbconvert->jupyter)
  Downloading jupyter_core-4.2.1-py2.py3-none-any.whl (125kB)
    100% |################################| 133kB 3.3MB/s
Collecting nbformat (from nbconvert->jupyter)
  Downloading nbformat-4.2.0-py2.py3-none-any.whl (153kB)
    100% |################################| 153kB 1.8MB/s
Collecting terminado>=0.3.3; sys_platform != "win32" (from notebook->jupyter)
  Downloading terminado-0.6.tar.gz
Collecting jupyter-client (from notebook->jupyter)
  Downloading jupyter_client-4.4.0-py2.py3-none-any.whl (76kB)
    100% |################################| 81kB 2.3MB/s
Collecting tornado>=4 (from notebook->jupyter)
  Downloading tornado-4.4.2.tar.gz (460kB)
    100% |################################| 460kB 2.1MB/s
Collecting ipython-genutils (from notebook->jupyter)
  Downloading ipython_genutils-0.1.0-py2.py3-none-any.whl
Collecting widgetsnbextension>=1.2.6 (from ipywidgets->jupyter)
  Downloading widgetsnbextension-1.2.6-py2.py3-none-any.whl (1.5MB)
    100% |################################| 1.5MB 839kB/s
Collecting ipython>=4.0.0 (from ipywidgets->jupyter)
  Downloading ipython-5.2.2-py3-none-any.whl (749kB)
    100% |################################| 757kB 1.8MB/s
Collecting prompt-toolkit<2.0.0,>=1.0.0 (from jupyter-console->jupyter)
  Downloading prompt_toolkit-1.0.13-py3-none-any.whl (247kB)
    100% |################################| 256kB 3.5MB/s
Collecting MarkupSafe>=0.23 (from jinja2->nbconvert->jupyter)
  Downloading MarkupSafe-0.23.tar.gz
Collecting html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 (from bleach->nbconvert->jupyter)
  Downloading html5lib-0.9999999.tar.gz (889kB)
    100% |################################| 890kB 1.2MB/s
Collecting six (from bleach->nbconvert->jupyter)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting decorator (from traitlets>=4.2->nbconvert->jupyter)
  Downloading decorator-4.0.11-py2.py3-none-any.whl
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat->nbconvert->jupyter)
  Downloading jsonschema-2.6.0-py2.py3-none-any.whl
Collecting ptyprocess (from terminado>=0.3.3; sys_platform != "win32"->notebook->jupyter)
  Downloading ptyprocess-0.5.1-py2.py3-none-any.whl
Collecting pyzmq>=13 (from jupyter-client->notebook->jupyter)
  Downloading pyzmq-16.0.2-cp35-cp35m-manylinux1_x86_64.whl (3.0MB)
    100% |################################| 3.0MB 500kB/s
Collecting pexpect; sys_platform != "win32" (from ipython>=4.0.0->ipywidgets->jupyter)
  Downloading pexpect-4.2.1-py2.py3-none-any.whl (55kB)
    100% |################################| 61kB 6.6MB/s
Collecting simplegeneric>0.8 (from ipython>=4.0.0->ipywidgets->jupyter)
  Downloading simplegeneric-0.8.1.zip
Requirement already satisfied: setuptools>=18.5 in /usr/lib/python3.5/site-packages (from ipython>=4.0.0->ipywidgets->jupyter)
Collecting pickleshare (from ipython>=4.0.0->ipywidgets->jupyter)
  Downloading pickleshare-0.7.4-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter)
  Downloading wcwidth-0.1.7-py2.py3-none-any.whl
Installing collected packages: pandocfilters, MarkupSafe, jinja2, entrypoints, six, html5lib, bleach, mistune, pygments, testpath, ipython-genutils, decorator, traitlets, jupyter-core, jsonschema, nbformat, nbconvert, ptyprocess, tornado, terminado, pyzmq, jupyter-client, pexpect, wcwidth, prompt-toolkit, simplegeneric, pickleshare, ipython, ipykernel, notebook, widgetsnbextension, ipywidgets, qtconsole, jupyter-console, jupyter
  Running setup.py install for pandocfilters ... done
  Running setup.py install for MarkupSafe ... done
  Running setup.py install for html5lib ... done
  Running setup.py install for tornado ... done
  Running setup.py install for terminado ... done
  Running setup.py install for simplegeneric ... done
Successfully installed MarkupSafe-0.23 bleach-1.5.0 decorator-4.0.11 entrypoints-0.2.2 html5lib-0.9999999 ipykernel-4.5.2 ipython-5.2.2 ipython-genutils-0.1.0 ipywidgets-5.2.2 jinja2-2.9.5 jsonschema-2.6.0 jupyter-1.0.0 jupyter-client-4.4.0 jupyter-console-5.1.0 jupyter-core-4.2.1 mistune-0.7.3 nbconvert-5.1.1 nbformat-4.2.0 notebook-4.4.1 pandocfilters-1.4.1 pexpect-4.2.1 pickleshare-0.7.4 prompt-toolkit-1.0.13 ptyprocess-0.5.1 pygments-2.2.0 pyzmq-16.0.2 qtconsole-4.2.1 simplegeneric-0.8.1 six-1.10.0 terminado-0.6 testpath-0.3 tornado-4.4.2 traitlets-4.3.1 wcwidth-0.1.7 widgetsnbextension-1.2.6
[root@519dd98187dd /]#

Install python 3.5 in CentOS 7(docker container)

Command List

After Add IUS Community Project to Yum Repository in CentOS 7 - AKAI TSUKI

  • install and confirm python3.5
# yum install -y python35u python35u-libs python35u-devel python35u-pip
# find / -name python3.5
# python3.5 -V
  • create symbolic link.
# ln -s /usr/bin/python3.5 /usr/bin/python3
# ls -l /usr/bin/python3
# python3 -V

Detail

[root@519dd98187dd /]# yum install -y python35u python35u-libs python35u-devel python35u-pip
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * ius: ftp.neowiz.com
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package python35u.x86_64 0:3.5.3-1.ius.centos7 will be installed
---> Package python35u-devel.x86_64 0:3.5.3-1.ius.centos7 will be installed
---> Package python35u-libs.x86_64 0:3.5.3-1.ius.centos7 will be installed
---> Package python35u-pip.noarch 0:9.0.1-1.ius.centos7 will be installed
--> Processing Dependency: python35u-setuptools for package: python35u-pip-9.0.1-1.ius.centos7.noarch
--> Running transaction check
---> Package python35u-setuptools.noarch 0:30.2.0-1.ius.centos7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================
 Package                                  Arch                       Version                                     Repository               Size
===============================================================================================================================================
Installing:
 python35u                                x86_64                     3.5.3-1.ius.centos7                         ius                      50 k
 python35u-devel                          x86_64                     3.5.3-1.ius.centos7                         ius                     188 k
 python35u-libs                           x86_64                     3.5.3-1.ius.centos7                         ius                     9.1 M
 python35u-pip                            noarch                     9.0.1-1.ius.centos7                         ius                     1.8 M
Installing for dependencies:
 python35u-setuptools                     noarch                     30.2.0-1.ius.centos7                        ius                     524 k

Transaction Summary
===============================================================================================================================================
Install  4 Packages (+1 Dependent package)

Total download size: 12 M
Installed size: 53 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/ius/packages/python35u-3.5.3-1.ius.centos7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEYTA
Public key for python35u-3.5.3-1.ius.centos7.x86_64.rpm is not installed
(1/5): python35u-3.5.3-1.ius.centos7.x86_64.rpm                                                                         |  50 kB  00:00:00
(2/5): python35u-devel-3.5.3-1.ius.centos7.x86_64.rpm                                                                   | 188 kB  00:00:01
(3/5): python35u-pip-9.0.1-1.ius.centos7.noarch.rpm                                                                     | 1.8 MB  00:00:02
(4/5): python35u-setuptools-30.2.0-1.ius.centos7.noarch.rpm                                                             | 524 kB  00:00:04
(5/5): python35u-libs-3.5.3-1.ius.centos7.x86_64.rpm                                                                    | 9.1 MB  00:00:13
-----------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                          898 kB/s |  12 MB  00:00:13
Retrieving key from file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Importing GPG key 0x9CD4953F:
 Userid     : "IUS Community Project <coredev@iuscommunity.org>"
 Fingerprint: 8b84 6e3a b3fe 6462 74e8 670f da22 1cdf 9cd4 953f
 Package    : ius-release-1.0-14.ius.centos7.noarch (installed)
 From       : /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python35u-libs-3.5.3-1.ius.centos7.x86_64                                                                                   1/5
  Installing : python35u-3.5.3-1.ius.centos7.x86_64                                                                                        2/5
  Installing : python35u-setuptools-30.2.0-1.ius.centos7.noarch                                                                            3/5
  Installing : python35u-pip-9.0.1-1.ius.centos7.noarch                                                                                    4/5
  Installing : python35u-devel-3.5.3-1.ius.centos7.x86_64                                                                                  5/5
  Verifying  : python35u-setuptools-30.2.0-1.ius.centos7.noarch                                                                            1/5
  Verifying  : python35u-3.5.3-1.ius.centos7.x86_64                                                                                        2/5
  Verifying  : python35u-pip-9.0.1-1.ius.centos7.noarch                                                                                    3/5
  Verifying  : python35u-libs-3.5.3-1.ius.centos7.x86_64                                                                                   4/5
  Verifying  : python35u-devel-3.5.3-1.ius.centos7.x86_64                                                                                  5/5

Installed:
  python35u.x86_64 0:3.5.3-1.ius.centos7        python35u-devel.x86_64 0:3.5.3-1.ius.centos7    python35u-libs.x86_64 0:3.5.3-1.ius.centos7
  python35u-pip.noarch 0:9.0.1-1.ius.centos7

Dependency Installed:
  python35u-setuptools.noarch 0:30.2.0-1.ius.centos7

Complete!
[root@519dd98187dd /]#
[root@519dd98187dd /]# find / -name python3.5
/usr/bin/python3.5
/usr/lib/python3.5
/usr/lib64/python3.5
[root@519dd98187dd /]# python3.5 -V
Python 3.5.3
[root@519dd98187dd /]#
[root@519dd98187dd /]# ln -s /usr/bin/python3.5 /usr/bin/python3
[root@519dd98187dd /]# ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 18 Feb 11 08:48 /usr/bin/python3 -> /usr/bin/python3.5
[root@519dd98187dd /]# python3 -V
Python 3.5.3
[root@519dd98187dd /]#

Add IUS Community Project to Yum Repository in CentOS 7

Command List

  • add IUS Community Project
# yum install -y https://centos7.iuscommunity.org/ius-release.rpm
  • yum search python35 (or something)
# yum search python3

Detail

[root@519dd98187dd /]# yum install -y https://centos7.iuscommunity.org/ius-release.rpm
Loaded plugins: fastestmirror, ovl
ius-release.rpm                                                                                                         | 8.1 kB  00:00:00
Examining /var/tmp/yum-root-hU9pZw/ius-release.rpm: ius-release-1.0-14.ius.centos7.noarch
Marking /var/tmp/yum-root-hU9pZw/ius-release.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package ius-release.noarch 0:1.0-14.ius.centos7 will be installed
--> Processing Dependency: epel-release = 7 for package: ius-release-1.0-14.ius.centos7.noarch
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
--> Running transaction check
---> Package epel-release.noarch 0:7-9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================
 Package                           Arch                        Version                                 Repository                         Size
===============================================================================================================================================
Installing:
 ius-release                       noarch                      1.0-14.ius.centos7                      /ius-release                      8.5 k
Installing for dependencies:
 epel-release                      noarch                      7-9                                     extras                             14 k

Transaction Summary
===============================================================================================================================================
Install  1 Package (+1 Dependent package)

Total size: 23 k
Total download size: 14 k
Installed size: 33 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/extras/packages/epel-release-7-9.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for epel-release-7-9.noarch.rpm is not installed
epel-release-7-9.noarch.rpm                                                                                             |  14 kB  00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-3.1611.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-9.noarch                                                                                                     1/2
  Installing : ius-release-1.0-14.ius.centos7.noarch                                                                                       2/2
  Verifying  : ius-release-1.0-14.ius.centos7.noarch                                                                                       1/2
  Verifying  : epel-release-7-9.noarch                                                                                                     2/2

Installed:
  ius-release.noarch 0:1.0-14.ius.centos7

Dependency Installed:
  epel-release.noarch 0:7-9

Complete!
[root@519dd98187dd /]# yum search python3
Loaded plugins: fastestmirror, ovl
epel/x86_64/metalink                                                                                                    | 5.8 kB  00:00:00
epel                                                                                                                    | 4.3 kB  00:00:00
ius                                                                                                                     | 2.3 kB  00:00:00
(1/4): epel/x86_64/group_gz                                                                                             | 170 kB  00:00:00
(2/4): epel/x86_64/updateinfo                                                                                           | 733 kB  00:00:01
(3/4): ius/x86_64/primary_db                                                                                            | 195 kB  00:00:02
(4/4): epel/x86_64/primary_db                                                                                           | 4.5 MB  00:00:18
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * ius: archive.linux.duke.edu
 * updates: www.ftp.ne.jp
============================================================ N/S matched: python3 =============================================================
python3-jinja2-doc.noarch : Documentation for python3-jinja2
python3-sqlalchemy-doc.noarch : Documentation for python3-sqlalchemy
python34-autowrap.noarch : Generates Python3 Extension modules from [Cython] PXD files
python34-decorator.noarch : Module to simplify usage of decorators in python3
python34-idstools.noarch : Snort and Suricata Rule and Event Utilities For Python2 for Python3
python34-pg8000.noarch : Pure Python3 PostgreSQL Driver
python34-pika-doc.noarch : Additional API documentation for python3-python-pika
python34-pip.noarch : A tool for installing and managing Python3 packages
python34-pkgconfig.noarch : A Python3 interface to the pkg-config command line tool
python34-pyxdg.noarch : Python3 library to access freedesktop.org standards
python34-simplejson.x86_64 : Simple, fast, extensible JSON encoder/decoder for Python3
python34-whoosh.noarch : Fast, Python3 full text indexing, search, and spell checking library
python34u-debuginfo.x86_64 : Debug information for package python34u
python35u-debuginfo.x86_64 : Debug information for package python35u
python35u-hiredis-debuginfo.x86_64 : Debug information for package python35u-hiredis
python35u-lxml-debuginfo.x86_64 : Debug information for package python35u-lxml
python35u-lxml-docs.noarch : Documentation for python35u-lxml
python35u-mod_wsgi-debuginfo.x86_64 : Debug information for package python35u-mod_wsgi
python35u-postgresql-debuginfo.x86_64 : Debug information for package python35u-postgresql
python36u-debuginfo.x86_64 : Debug information for package python36u
python36u-lxml-debuginfo.x86_64 : Debug information for package python36u-lxml
uwsgi-plugin-python34u-debuginfo.x86_64 : Debug information for package uwsgi-plugin-python34u
uwsgi-plugin-python35u-debuginfo.x86_64 : Debug information for package uwsgi-plugin-python35u
uwsgi-plugin-python36u-debuginfo.x86_64 : Debug information for package uwsgi-plugin-python36u
python-fastcache.x86_64 : C implementation of python3 lru_cache
python2-whoosh.noarch : Fast, Python3 full text indexing, search, and spell checking library
python3-pkgversion-macros.noarch : Convenience macros for Fedora/EPEL Python 3 packages building
python3-pyudev.noarch : A libudev binding
python3-rpdb.noarch : A wrapper around pdb allowing remote debugging
python3-rpm-macros.noarch : RPM macros for building Python 3 packages
python3-tornado-doc.x86_64 : Examples for python-tornado
python3-uwsgidecorators.x86_64 : Python 3 decorators providing access to the uwsgi API
python34.x86_64 : Version 3 of the Python programming language aka Python 3000
python34-Cython.x86_64 : A language for writing Python 3.4 extension modules
python34-PyYAML.x86_64 : YAML parser and emitter for Python 3.4
python34-apsw.x86_64 : Another Python SQLite Wrapper
python34-arrow.noarch : Better dates and times for Python
python34-attrs.noarch : Python attributes without boilerplate
python34-backports_abc.noarch : A backport of recent additions to the 'collections.abc' module
python34-bitarray.x86_64 : Efficient Array of Booleans --C Extensions
python34-bottle.noarch : Fast and simple WSGI-framework for small web-applications
python34-breathe.noarch : Adds support for Doxygen xml output to reStructuredText and Sphinx
python34-chai.noarch : Easy to use mocking/stub framework
python34-chardet.noarch : Character encoding auto-detection in Python 3
python34-contextlib2.noarch : Backports and enhancements for the contextlib module
python34-cookies.noarch : Friendlier RFC 6265-compliant cookie parser/renderer
python34-coverage.x86_64 : Code coverage testing module for Python 34
python34-crypto.x86_64 : Cryptography library for Python 3
python34-cytoolz.x86_64 : Cython implementation of the toolz package
python34-dateutil.noarch : Powerful extensions to the standard datetime module
python34-dbus.x86_64 : D-Bus bindings for python 3.4
python34-debug.x86_64 : Debug version of the Python 3 runtime
python34-devel.x86_64 : Libraries and header files needed for Python 3 development
python34-ecdsa.noarch : ECDSA cryptographic signature library
python34-flufl-testing.noarch : Small collection of test tool plugins
python34-idna.noarch : Internationalized Domain Names in Applications (IDNA)
python34-ipython_genutils.noarch : IPython vestigial utilities
python34-ivi.noarch : Python Interchangeable Virtual Instrument Library
python34-jinja2.noarch : General purpose template engine
python34-jsmva.noarch : TMVA interface used by JupyROOT
python34-jupyroot.x86_64 : ROOT Jupyter kernel
python34-keyring.noarch : Python 3 library to access the system keyring service
python34-libs.x86_64 : Python 3 runtime libraries
python34-llfuse.x86_64 : Python Bindings for the low-level FUSE API Python 3.4 packages
python34-lxc.x86_64 : Python binding for lxc
python34-lz4.x86_64 : LZ4 Bindings for Python 3
python34-markupsafe.x86_64 : Implements a XML/HTML/XHTML Markup safe string for Python
python34-mock.noarch : A Python Mocking and Patching Library for Testing
python34-msgpack.x86_64 : A Python MessagePack (de)serializer
python34-nose.noarch : Discovery-based unittest extension for Python 3.4
python34-numexpr.x86_64 : Fast numerical array expression evaluator for Python and NumPy
python34-numpy.x86_64 : A fast multidimensional array facility for Python 3.4
python34-numpy-f2py.x86_64 : f2py for numpy
python34-paramiko.noarch : SSH2 protocol library for python
python34-pdfminer.noarch : PDF parser and analyzer
python34-pika.noarch : AMQP 0-9-1 client library for Python 3
python34-ply.noarch : Python Lex-Yacc
python34-prelude.x86_64 : Python 3 bindings for prelude
python34-preludedb.x86_64 : Python 3 bindings for preludedb
python34-py.noarch : Library with cross-python path, ini-parsing, io, code, log facilities
python34-pycmd.noarch : Tools for managing/searching Python related files
python34-pycosat.x86_64 : Python bindings to picosat (a SAT solver)
python34-pycurl.x86_64 : Python interface to libcurl for Python 3
python34-pyflakes.noarch : A simple program which checks Python source files for errors
python34-pypandoc.noarch : Thin wrapper for pandoc
python34-pyroute2.noarch : Pure Python netlink library
python34-pysocks.noarch : A Python SOCKS client module
python34-pytest.noarch : Simple powerful testing with Python
python34-pytest-catchlog.noarch : py.test plugin to catch log messages (fork of pytest-capturelog)
python34-pytg.noarch : Python package that communicates with the Telegram CLI
python34-pytz.noarch : World Timezone Definitions for Python
python34-rencode.x86_64 : Web safe object pickling/unpickling
python34-requests.noarch : HTTP library, written in Python, for human beings
python34-root.x86_64 : Python extension for ROOT
python34-scandir.x86_64 : A better directory iterator and faster os.walk() for Python
python34-setuptools.noarch : Easily build and distribute Python 34 packages
python34-setuptools_scm.noarch : The blessed package to manage your versions by scm tags
python34-simplepath.noarch : A python library for data-structure lookup
python34-six.noarch : Python 2 and 3 compatibility utilities
python34-sphinx-autobuild.noarch : Watch a Sphinx directory and rebuild the documentation
python34-sphinx-theme-alabaster.noarch : Configurable sidebar-enabled Sphinx theme
python34-spur.noarch : Run commands locally or over SSH using the same interface
python34-sqlalchemy.x86_64 : Modular and flexible ORM library for python
python34-suds.noarch : A python SOAP client
python34-test.x86_64 : The test modules from the main python 3 package
python34-tinydb.noarch : TinyDB is a tiny, document oriented database
python34-tkinter.x86_64 : A GUI toolkit for Python 3
python34-tools.x86_64 : A collection of tools included with Python 3
python34-toolz.noarch : A functional standard library for Python 3.4
python34-tornado.x86_64 : Scalable, non-blocking web server and tools
python34-unidiff.noarch : Python library to parse and interact with unified diffs (patches)
python34-urllib3.noarch : Python 3.4 HTTP library with thread-safe connection pooling and file post
python34-vxi11.noarch : Python implementation of the VXI-11 protocol
python34-wrapt.x86_64 : A Python module for decorators, wrappers and monkey patching
python34-zope-event.noarch : Zope Event Publication
python34-zope-interface.x86_64 : Zope 3 Interface Infrastructure
python34u.x86_64 : Version 3 of the Python programming language aka Python 3000
python34u-debug.x86_64 : Debug version of the Python 3 runtime
python34u-devel.x86_64 : Libraries and header files needed for Python 3 development
python34u-libs.x86_64 : Python 3 runtime libraries
python34u-pip.noarch : A tool for installing and managing Python packages
python34u-redis.noarch : Python client for Redis key-value store
python34u-setuptools.noarch : Easily build and distribute Python packages
python34u-test.x86_64 : The test modules from the main python 3 package
python34u-tkinter.x86_64 : A GUI toolkit for Python 3
python34u-tools.x86_64 : A collection of tools included with Python 3
python34u-wheel.noarch : A built-package format for Python 3.4
python35u.x86_64 : Version 3 of the Python programming language aka Python 3000
python35u-debug.x86_64 : Debug version of the Python 3 runtime
python35u-devel.x86_64 : Libraries and header files needed for Python 3 development
python35u-hiredis.x86_64 : Python wrapper for hiredis
python35u-libs.x86_64 : Python 3 runtime libraries
python35u-lxml.x86_64 : ElementTree-like Python bindings for libxml2 and libxslt
python35u-mod_wsgi.x86_64 : A WSGI interface for Python web applications in Apache
python35u-pip.noarch : A tool for installing and managing Python packages
python35u-postgresql.x86_64 : Connect to PostgreSQL with Python 3
python35u-redis.noarch : Python 3 interface to the Redis key-value store
python35u-setuptools.noarch : Easily build and distribute Python packages
python35u-test.x86_64 : The test modules from the main python 3 package
python35u-tkinter.x86_64 : A GUI toolkit for Python 3
python35u-tools.x86_64 : A collection of tools included with Python 3
python36u.x86_64 : Version 3 of the Python programming language aka Python 3000
python36u-debug.x86_64 : Debug version of the Python 3 runtime
python36u-devel.x86_64 : Libraries and header files needed for Python 3 development
python36u-libs.x86_64 : Python 3 runtime libraries
python36u-lxml.x86_64 : XML processing library combining libxml2/libxslt with the ElementTree API
python36u-pip.noarch : A tool for installing and managing Python packages
python36u-setuptools.noarch : Easily build and distribute Python packages
python36u-test.x86_64 : The test modules from the main python 3 package
python36u-tkinter.x86_64 : A GUI toolkit for Python 3
python36u-tools.x86_64 : A collection of tools included with Python 3
uwsgi-plugin-python3.x86_64 : uWSGI - Plugin for Python 3 support
uwsgi-plugin-python34u.x86_64 : uWSGI - Plugin for Python support
uwsgi-plugin-python35u.x86_64 : uWSGI - Plugin for Python support
uwsgi-plugin-python36u.x86_64 : uWSGI - Plugin for Python support
znc-modpython.x86_64 : python3 module for ZNC

  Name and summary matches only, use "search all" for everything.
[root@519dd98187dd /]#

Install iproute in docker container (centos7).

I did not use ip/ss commands in default centos7 container.
So, I install iproute package to container.

Command list

  • install iproute
# yum install iproute

Detail

[root@519dd98187dd /]# yum install iproute
Loaded plugins: fastestmirror, ovl
base                                                                                                               | 3.6 kB  00:00:00
epel/x86_64/metalink                                                                                               | 6.4 kB  00:00:00
epel                                                                                                               | 4.3 kB  00:00:00
extras                                                                                                             | 3.4 kB  00:00:00
ius                                                                                                                | 2.3 kB  00:00:00
updates                                                                                                            | 3.4 kB  00:00:00
(1/3): epel/x86_64/updateinfo                                                                                      | 734 kB  00:00:01
(2/3): ius/x86_64/primary_db                                                                                       | 195 kB  00:00:01
(3/3): epel/x86_64/primary_db                                                                                      | 4.5 MB  00:00:03
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * ius: mirrors.kernel.org
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package iproute.x86_64 0:3.10.0-74.el7 will be installed
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-3.10.0-74.el7.x86_64
--> Processing Dependency: libxtables.so.10()(64bit) for package: iproute-3.10.0-74.el7.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-3.10.0-74.el7.x86_64
--> Running transaction check
---> Package iptables.x86_64 0:1.4.21-17.el7 will be installed
--> Processing Dependency: libnfnetlink.so.0()(64bit) for package: iptables-1.4.21-17.el7.x86_64
--> Processing Dependency: libnetfilter_conntrack.so.3()(64bit) for package: iptables-1.4.21-17.el7.x86_64
---> Package libmnl.x86_64 0:1.0.3-7.el7 will be installed
--> Running transaction check
---> Package libnetfilter_conntrack.x86_64 0:1.0.4-2.el7 will be installed
---> Package libnfnetlink.x86_64 0:1.0.1-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================
 Package                                    Arch                       Version                             Repository                Size
==========================================================================================================================================
Installing:
 iproute                                    x86_64                     3.10.0-74.el7                       base                     618 k
Installing for dependencies:
 iptables                                   x86_64                     1.4.21-17.el7                       base                     426 k
 libmnl                                     x86_64                     1.0.3-7.el7                         base                      23 k
 libnetfilter_conntrack                     x86_64                     1.0.4-2.el7                         base                      53 k
 libnfnetlink                               x86_64                     1.0.1-4.el7                         base                      26 k

Transaction Summary
==========================================================================================================================================
Install  1 Package (+4 Dependent packages)

Total download size: 1.1 M
Installed size: 3.1 M
Is this ok [y/d/N]: y
Downloading packages:
(1/5): libmnl-1.0.3-7.el7.x86_64.rpm                                                                               |  23 kB  00:00:00
(2/5): iptables-1.4.21-17.el7.x86_64.rpm                                                                           | 426 kB  00:00:00
(3/5): libnetfilter_conntrack-1.0.4-2.el7.x86_64.rpm                                                               |  53 kB  00:00:00
(4/5): libnfnetlink-1.0.1-4.el7.x86_64.rpm                                                                         |  26 kB  00:00:00
(5/5): iproute-3.10.0-74.el7.x86_64.rpm                                                                            | 618 kB  00:00:00
------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                     1.6 MB/s | 1.1 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libmnl-1.0.3-7.el7.x86_64                                                                                              1/5
  Installing : libnfnetlink-1.0.1-4.el7.x86_64                                                                                        2/5
  Installing : libnetfilter_conntrack-1.0.4-2.el7.x86_64                                                                              3/5
  Installing : iptables-1.4.21-17.el7.x86_64                                                                                          4/5
  Installing : iproute-3.10.0-74.el7.x86_64                                                                                           5/5
  Verifying  : libnetfilter_conntrack-1.0.4-2.el7.x86_64                                                                              1/5
  Verifying  : libnfnetlink-1.0.1-4.el7.x86_64                                                                                        2/5
  Verifying  : iptables-1.4.21-17.el7.x86_64                                                                                          3/5
  Verifying  : libmnl-1.0.3-7.el7.x86_64                                                                                              4/5
  Verifying  : iproute-3.10.0-74.el7.x86_64                                                                                           5/5

Installed:
  iproute.x86_64 0:3.10.0-74.el7

Dependency Installed:
  iptables.x86_64 0:1.4.21-17.el7             libmnl.x86_64 0:1.0.3-7.el7           libnetfilter_conntrack.x86_64 0:1.0.4-2.el7
  libnfnetlink.x86_64 0:1.0.1-4.el7

Complete!
[root@519dd98187dd /]#
[root@519dd98187dd /]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
14: eth0@if15: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.17.0.2/16 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:acff:fe11:2/64 scope link
       valid_lft forever preferred_lft forever
[root@519dd98187dd /]# ss -t
State      Recv-Q Send-Q                      Local Address:Port                                       Peer Address:Port
[root@519dd98187dd /]# ss -ta
State      Recv-Q Send-Q                      Local Address:Port                                       Peer Address:Port
LISTEN     0      128                             127.0.0.1:ddi-tcp-1                                             *:*
LISTEN     0      128                                   ::1:ddi-tcp-1                                            :::*
[root@519dd98187dd /]# ss -tan
State      Recv-Q Send-Q                        Local Address:Port                                       Peer Address:Port
LISTEN     0      128                               127.0.0.1:8888                                                  *:*
LISTEN     0      128                                     ::1:8888                                                 :::*
[root@519dd98187dd /]#

install docker-compose 1.10.1 on CentOS 7

install

I failed to get docker-compose as follows:

[vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/dock
er-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
-bash: /usr/local/bin/docker-compose: Permission denied
[vagrant@localhost ~]$

so, At first, I saved docker-compose to temporary directory.
and I moved file as follows:

[vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`uname -s`-`uname -m` > /tmp/
-bash: /tmp/: Is a directory
[vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`uname -s`-`uname -m` > /tmp/docker-compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   600    0   600    0     0    595      0 --:--:--  0:00:01 --:--:--   596
100 7930k  100 7930k    0     0   713k      0  0:00:11  0:00:11 --:--:--  811k
[vagrant@localhost ~]$ ls -l /tmp/
total 7936
-rw-rw-r-- 1 vagrant vagrant 8121118 Feb  5 17:54 docker-compose
-rwxrwxr-x 1 vagrant vagrant      33 Feb  5 15:43 vagrant-shell
[vagrant@localhost ~]$ ls -l /usr/local/bin/
total 0
[vagrant@localhost ~]$ mv /tmp/docker-compose /usr/local/bin/
mv: cannot move ‘/tmp/docker-compose’ to ‘/usr/local/bin/docker-compose’: Permission denied
[vagrant@localhost ~]$ sudo mv /tmp/docker-compose /usr/local/bin/
[vagrant@localhost ~]$ ls -l /usr/local/bin/
total 7932
-rw-rw-r-- 1 vagrant vagrant 8121118 Feb  5 17:54 docker-compose
[vagrant@localhost ~]$ chmod +x /usr/local/bin/docker-compose
[vagrant@localhost ~]$ ls -l /usr/local/bin/
total 7932
-rwxrwxr-x 1 vagrant vagrant 8121118 Feb  5 17:54 docker-compose
[vagrant@localhost ~]$ docker

check version

[vagrant@localhost ~]$ docker-compose --version
docker-compose version 1.10.1, build b252738
[vagrant@localhost ~]$

install docker 1.13 on CentOS 7

I try to install docker 1.13 on CentOS 7.

(Reference) https://docs.docker.com/engine/installation/linux/centos/

add repo to yum

[vagrant@localhost ~]$ sudo yum install -y yum-utils
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                        | 3.6 kB  00:00:00
epel/x86_64/metalink                                                        | 5.7 kB  00:00:00
epel                                                                        | 4.3 kB  00:00:00
extras                                                                      | 3.4 kB  00:00:00
puppetlabs-pc1                                                              | 2.5 kB  00:00:00
updates                                                                     | 3.4 kB  00:00:00
(1/8): base/7/x86_64/group_gz                                               | 155 kB  00:00:00
(2/8): epel/x86_64/group_gz                                                 | 170 kB  00:00:00
(3/8): epel/x86_64/updateinfo                                               | 730 kB  00:00:00
(4/8): extras/7/x86_64/primary_db                                           | 121 kB  00:00:00
(5/8): puppetlabs-pc1/x86_64/primary_db                                     |  99 kB  00:00:01
(6/8): base/7/x86_64/primary_db                                             | 5.6 MB  00:00:05
(7/8): updates/7/x86_64/primary_db                                          | 2.2 MB  00:00:08
(8/8): epel/x86_64/primary_db                                               | 4.5 MB  00:00:10
Determining fastest mirrors
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-40.el7 will be installed
--> Processing Dependency: yum >= 3.4.3-143 for package: yum-utils-1.1.31-40.el7.noarch
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-40.el7.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-40.el7.noarch
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed
--> Processing Dependency: libxml2 = 2.9.1-6.el7_2.3 for package: libxml2-python-2.9.1-6.el7_2.3.x86_64
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
---> Package yum.noarch 0:3.4.3-132.el7.centos.0.1 will be updated
---> Package yum.noarch 0:3.4.3-150.el7.centos will be an update
--> Processing Dependency: python-urlgrabber >= 3.10-8 for package: yum-3.4.3-150.el7.centos.noarch
--> Running transaction check
---> Package libxml2.x86_64 0:2.9.1-6.el7_2.2 will be updated
---> Package libxml2.x86_64 0:2.9.1-6.el7_2.3 will be an update
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
---> Package python-urlgrabber.noarch 0:3.10-7.el7 will be updated
---> Package python-urlgrabber.noarch 0:3.10-8.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package                     Arch             Version                         Repository      Size
===================================================================================================
Installing:
 yum-utils                   noarch           1.1.31-40.el7                   base           116 k
Installing for dependencies:
 libxml2-python              x86_64           2.9.1-6.el7_2.3                 base           247 k
 python-chardet              noarch           2.2.1-1.el7_1                   base           227 k
 python-kitchen              noarch           1.1.1-5.el7                     base           267 k
Updating for dependencies:
 libxml2                     x86_64           2.9.1-6.el7_2.3                 base           668 k
 python-urlgrabber           noarch           3.10-8.el7                      base           108 k
 yum                         noarch           3.4.3-150.el7.centos            base           1.2 M

Transaction Summary
===================================================================================================
Install  1 Package  (+3 Dependent packages)
Upgrade             ( 3 Dependent packages)

Total download size: 2.8 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/7): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm                            | 247 kB  00:00:00
(2/7): python-chardet-2.2.1-1.el7_1.noarch.rpm                              | 227 kB  00:00:00
(3/7): python-urlgrabber-3.10-8.el7.noarch.rpm                              | 108 kB  00:00:00
(4/7): python-kitchen-1.1.1-5.el7.noarch.rpm                                | 267 kB  00:00:00
(5/7): yum-utils-1.1.31-40.el7.noarch.rpm                                   | 116 kB  00:00:00
(6/7): yum-3.4.3-150.el7.centos.noarch.rpm                                  | 1.2 MB  00:00:00
(7/7): libxml2-2.9.1-6.el7_2.3.x86_64.rpm                                   | 668 kB  00:00:02
---------------------------------------------------------------------------------------------------
Total                                                              1.2 MB/s | 2.8 MB  00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : python-urlgrabber-3.10-8.el7.noarch                                            1/10
  Updating   : yum-3.4.3-150.el7.centos.noarch                                                2/10
  Installing : python-chardet-2.2.1-1.el7_1.noarch                                            3/10
  Installing : python-kitchen-1.1.1-5.el7.noarch                                              4/10
  Updating   : libxml2-2.9.1-6.el7_2.3.x86_64                                                 5/10
  Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64                                          6/10
  Installing : yum-utils-1.1.31-40.el7.noarch                                                 7/10
  Cleanup    : yum-3.4.3-132.el7.centos.0.1.noarch                                            8/10
  Cleanup    : python-urlgrabber-3.10-7.el7.noarch                                            9/10
  Cleanup    : libxml2-2.9.1-6.el7_2.2.x86_64                                                10/10
  Verifying  : yum-utils-1.1.31-40.el7.noarch                                                 1/10
  Verifying  : libxml2-2.9.1-6.el7_2.3.x86_64                                                 2/10
  Verifying  : libxml2-python-2.9.1-6.el7_2.3.x86_64                                          3/10
  Verifying  : python-chardet-2.2.1-1.el7_1.noarch                                            4/10
  Verifying  : yum-3.4.3-150.el7.centos.noarch                                                5/10
  Verifying  : python-kitchen-1.1.1-5.el7.noarch                                              6/10
  Verifying  : python-urlgrabber-3.10-8.el7.noarch                                            7/10
  Verifying  : libxml2-2.9.1-6.el7_2.2.x86_64                                                 8/10
  Verifying  : yum-3.4.3-132.el7.centos.0.1.noarch                                            9/10
  Verifying  : python-urlgrabber-3.10-7.el7.noarch                                           10/10

Installed:
  yum-utils.noarch 0:1.1.31-40.el7

Dependency Installed:
  libxml2-python.x86_64 0:2.9.1-6.el7_2.3           python-chardet.noarch 0:2.2.1-1.el7_1
  python-kitchen.noarch 0:1.1.1-5.el7

Dependency Updated:
  libxml2.x86_64 0:2.9.1-6.el7_2.3               python-urlgrabber.noarch 0:3.10-8.el7
  yum.noarch 0:3.4.3-150.el7.centos

Complete!
[vagrant@localhost ~]$ 
[vagrant@localhost ~]$ sudo yum-config-manager \
>     --add-repo \
>     https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
Loaded plugins: fastestmirror
adding repo from: https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
grabbing file https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo to /etc/yum.repos.d/docker.repo
repo saved to /etc/yum.repos.d/docker.repo
[vagrant@localhost ~]$
[vagrant@localhost ~]$ sudo yum makecache fast
Loaded plugins: fastestmirror
base                                                                        | 3.6 kB  00:00:00
docker-main                                                                 | 2.9 kB  00:00:00
epel/x86_64/metalink                                                        | 5.7 kB  00:00:00
extras                                                                      | 3.4 kB  00:00:00
puppetlabs-pc1                                                              | 2.5 kB  00:00:00
updates                                                                     | 3.4 kB  00:00:00
docker-main/primary_db                                                      |  28 kB  00:00:01
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Metadata Cache Created
[vagrant@localhost ~]$

install

[vagrant@localhost ~]$ sudo yum -y install docker-engine
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.13.0-1.el7.centos will be installed
--> Processing Dependency: docker-engine-selinux >= 1.13.0-1.el7.centos for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Processing Dependency: libcgroup for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Running transaction check
---> Package docker-engine-selinux.noarch 0:1.13.0-1.el7.centos will be installed
--> Processing Dependency: selinux-policy-base >= 3.13.1-102 for package: docker-engine-selinux-1.13.0-1.el7.centos.noarch
--> Processing Dependency: selinux-policy-targeted >= 3.13.1-102 for package: docker-engine-selinux-1.13.0-1.el7.centos.noarch
--> Processing Dependency: policycoreutils-python for package: docker-engine-selinux-1.13.0-1.el7.centos.noarch
---> Package libcgroup.x86_64 0:0.41-11.el7 will be installed
---> Package libseccomp.x86_64 0:2.3.1-2.el7 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-21.el7_2 will be installed
--> Running transaction check
---> Package policycoreutils-python.x86_64 0:2.5-11.el7_3 will be installed
--> Processing Dependency: policycoreutils = 2.5-11.el7_3 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: setools-libs >= 3.3.8-1 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-5 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libsepol.so.1(LIBSEPOL_1.0)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
---> Package selinux-policy-targeted.noarch 0:3.13.1-60.el7 will be updated
---> Package selinux-policy-targeted.noarch 0:3.13.1-102.el7_3.13 will be an update
--> Processing Dependency: selinux-policy = 3.13.1-102.el7_3.13 for package: selinux-policy-targeted-3.13.1-102.el7_3.13.noarch
--> Processing Dependency: selinux-policy = 3.13.1-102.el7_3.13 for package: selinux-policy-targeted-3.13.1-102.el7_3.13.noarch
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.6.5-3.el7 will be installed
--> Processing Dependency: audit-libs(x86-64) = 2.6.5-3.el7 for package: audit-libs-python-2.6.5-3.el7.x86_64
---> Package checkpolicy.x86_64 0:2.5-4.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-5.1.el7_3 will be installed
--> Processing Dependency: libsemanage = 2.5-5.1.el7_3 for package: libsemanage-python-2.5-5.1.el7_3.x86_64
--> Processing Dependency: libsemanage.so.1(LIBSEMANAGE_1.1)(64bit) for package: libsemanage-python-2.5-5.1.el7_3.x86_64
---> Package libsepol.x86_64 0:2.1.9-3.el7 will be updated
---> Package libsepol.x86_64 0:2.5-6.el7 will be an update
---> Package policycoreutils.x86_64 0:2.2.5-20.el7 will be updated
---> Package policycoreutils.x86_64 0:2.5-11.el7_3 will be an update
--> Processing Dependency: libselinux-utils >= 2.5-6 for package: policycoreutils-2.5-11.el7_3.x86_64
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package selinux-policy.noarch 0:3.13.1-60.el7 will be updated
---> Package selinux-policy.noarch 0:3.13.1-102.el7_3.13 will be an update
---> Package setools-libs.x86_64 0:3.3.8-1.1.el7 will be installed
--> Processing Dependency: libselinux >= 2.5-0 for package: setools-libs-3.3.8-1.1.el7.x86_64
--> Running transaction check
---> Package audit-libs.x86_64 0:2.4.1-5.el7 will be updated
--> Processing Dependency: audit-libs = 2.4.1-5.el7 for package: audit-2.4.1-5.el7.x86_64
---> Package audit-libs.x86_64 0:2.6.5-3.el7 will be an update
---> Package libselinux.x86_64 0:2.2.2-6.el7 will be updated
--> Processing Dependency: libselinux = 2.2.2-6.el7 for package: libselinux-python-2.2.2-6.el7.x86_64
---> Package libselinux.x86_64 0:2.5-6.el7 will be an update
---> Package libselinux-utils.x86_64 0:2.2.2-6.el7 will be updated
---> Package libselinux-utils.x86_64 0:2.5-6.el7 will be an update
---> Package libsemanage.x86_64 0:2.1.10-18.el7 will be updated
---> Package libsemanage.x86_64 0:2.5-5.1.el7_3 will be an update
--> Running transaction check
---> Package audit.x86_64 0:2.4.1-5.el7 will be updated
---> Package audit.x86_64 0:2.6.5-3.el7 will be an update
---> Package libselinux-python.x86_64 0:2.2.2-6.el7 will be updated
---> Package libselinux-python.x86_64 0:2.5-6.el7 will be an update
--> Processing Conflict: libselinux-2.5-6.el7.x86_64 conflicts systemd < 219-20
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package systemd.x86_64 0:219-19.el7 will be updated
--> Processing Dependency: systemd = 219-19.el7 for package: systemd-sysv-219-19.el7.x86_64
---> Package systemd.x86_64 0:219-30.el7_3.6 will be an update
--> Processing Dependency: systemd-libs = 219-30.el7_3.6 for package: systemd-219-30.el7_3.6.x86_64
--> Running transaction check
---> Package systemd-libs.x86_64 0:219-19.el7 will be updated
--> Processing Dependency: systemd-libs = 219-19.el7 for package: libgudev1-219-19.el7.x86_64
---> Package systemd-libs.x86_64 0:219-30.el7_3.6 will be an update
---> Package systemd-sysv.x86_64 0:219-19.el7 will be updated
---> Package systemd-sysv.x86_64 0:219-30.el7_3.6 will be an update
--> Running transaction check
---> Package libgudev1.x86_64 0:219-19.el7 will be updated
---> Package libgudev1.x86_64 0:219-30.el7_3.6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package                        Arch          Version                     Repository          Size
===================================================================================================
Installing:
 docker-engine                  x86_64        1.13.0-1.el7.centos         docker-main         19 M
Updating:
 systemd                        x86_64        219-30.el7_3.6              updates            5.2 M
Installing for dependencies:
 audit-libs-python              x86_64        2.6.5-3.el7                 base                70 k
 checkpolicy                    x86_64        2.5-4.el7                   base               290 k
 docker-engine-selinux          noarch        1.13.0-1.el7.centos         docker-main         28 k
 libcgroup                      x86_64        0.41-11.el7                 base                65 k
 libseccomp                     x86_64        2.3.1-2.el7                 base                56 k
 libsemanage-python             x86_64        2.5-5.1.el7_3               updates            104 k
 libtool-ltdl                   x86_64        2.4.2-21.el7_2              base                49 k
 policycoreutils-python         x86_64        2.5-11.el7_3                updates            445 k
 python-IPy                     noarch        0.75-6.el7                  base                32 k
 setools-libs                   x86_64        3.3.8-1.1.el7               base               612 k
Updating for dependencies:
 audit                          x86_64        2.6.5-3.el7                 base               233 k
 audit-libs                     x86_64        2.6.5-3.el7                 base                85 k
 libgudev1                      x86_64        219-30.el7_3.6              updates             76 k
 libselinux                     x86_64        2.5-6.el7                   base               161 k
 libselinux-python              x86_64        2.5-6.el7                   base               234 k
 libselinux-utils               x86_64        2.5-6.el7                   base               151 k
 libsemanage                    x86_64        2.5-5.1.el7_3               updates            144 k
 libsepol                       x86_64        2.5-6.el7                   base               288 k
 policycoreutils                x86_64        2.5-11.el7_3                updates            841 k
 selinux-policy                 noarch        3.13.1-102.el7_3.13         updates            414 k
 selinux-policy-targeted        noarch        3.13.1-102.el7_3.13         updates            6.4 M
 systemd-libs                   x86_64        219-30.el7_3.6              updates            368 k
 systemd-sysv                   x86_64        219-30.el7_3.6              updates             63 k

Transaction Summary
===================================================================================================
Install  1 Package (+10 Dependent packages)
Upgrade  1 Package (+13 Dependent packages)

Total download size: 35 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/25): audit-libs-2.6.5-3.el7.x86_64.rpm                                   |  85 kB  00:00:00
(2/25): audit-2.6.5-3.el7.x86_64.rpm                                        | 233 kB  00:00:00
(3/25): audit-libs-python-2.6.5-3.el7.x86_64.rpm                            |  70 kB  00:00:00
(4/25): libcgroup-0.41-11.el7.x86_64.rpm                                    |  65 kB  00:00:00
(5/25): checkpolicy-2.5-4.el7.x86_64.rpm                                    | 290 kB  00:00:00
(6/25): libseccomp-2.3.1-2.el7.x86_64.rpm                                   |  56 kB  00:00:00
(7/25): libselinux-2.5-6.el7.x86_64.rpm                                     | 161 kB  00:00:00
(8/25): libgudev1-219-30.el7_3.6.x86_64.rpm                                 |  76 kB  00:00:00
(9/25): libselinux-utils-2.5-6.el7.x86_64.rpm                               | 151 kB  00:00:00
(10/25): libsemanage-2.5-5.1.el7_3.x86_64.rpm                               | 144 kB  00:00:00
(11/25): libselinux-python-2.5-6.el7.x86_64.rpm                             | 234 kB  00:00:00
(12/25): libsemanage-python-2.5-5.1.el7_3.x86_64.rpm                        | 104 kB  00:00:00
(13/25): libtool-ltdl-2.4.2-21.el7_2.x86_64.rpm                             |  49 kB  00:00:00
(14/25): libsepol-2.5-6.el7.x86_64.rpm                                      | 288 kB  00:00:00
(15/25): python-IPy-0.75-6.el7.noarch.rpm                                   |  32 kB  00:00:00
(16/25): policycoreutils-2.5-11.el7_3.x86_64.rpm                            | 841 kB  00:00:00
(17/25): policycoreutils-python-2.5-11.el7_3.x86_64.rpm                     | 445 kB  00:00:00
(18/25): selinux-policy-3.13.1-102.el7_3.13.noarch.rpm                      | 414 kB  00:00:00
warning: /var/cache/yum/x86_64/7/docker-main/packages/docker-engine-selinux-1.13.0-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Public key for docker-engine-selinux-1.13.0-1.el7.centos.noarch.rpm is not installed
(19/25): docker-engine-selinux-1.13.0-1.el7.centos.noarch.rpm               |  28 kB  00:00:00
(20/25): setools-libs-3.3.8-1.1.el7.x86_64.rpm                              | 612 kB  00:00:00
(21/25): systemd-219-30.el7_3.6.x86_64.rpm                                  | 5.2 MB  00:00:02
(22/25): systemd-libs-219-30.el7_3.6.x86_64.rpm                             | 368 kB  00:00:00
(23/25): systemd-sysv-219-30.el7_3.6.x86_64.rpm                             |  63 kB  00:00:00
(24/25): selinux-policy-targeted-3.13.1-102.el7_3.13.noarch.rpm             | 6.4 MB  00:00:03
(25/25): docker-engine-1.13.0-1.el7.centos.x86_64.rpm                       |  19 MB  00:00:07
---------------------------------------------------------------------------------------------------
Total                                                              4.3 MB/s |  35 MB  00:00:08
Retrieving key from https://yum.dockerproject.org/gpg
Importing GPG key 0x2C52609D:
 Userid     : "Docker Release Tool (releasedocker) <docker@docker.com>"
 Fingerprint: 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52 609d
 From       : https://yum.dockerproject.org/gpg
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libsepol-2.5-6.el7.x86_64                                                      1/39
  Updating   : libselinux-2.5-6.el7.x86_64                                                    2/39
  Updating   : audit-libs-2.6.5-3.el7.x86_64                                                  3/39
  Updating   : libsemanage-2.5-5.1.el7_3.x86_64                                               4/39
  Updating   : systemd-libs-219-30.el7_3.6.x86_64                                             5/39
  Updating   : systemd-219-30.el7_3.6.x86_64                                                  6/39
  Installing : libcgroup-0.41-11.el7.x86_64                                                   7/39
  Updating   : libselinux-utils-2.5-6.el7.x86_64                                              8/39
  Updating   : policycoreutils-2.5-11.el7_3.x86_64                                            9/39
  Updating   : selinux-policy-3.13.1-102.el7_3.13.noarch                                     10/39
  Updating   : selinux-policy-targeted-3.13.1-102.el7_3.13.noarch                            11/39
  Updating   : systemd-sysv-219-30.el7_3.6.x86_64                                            12/39
  Installing : libsemanage-python-2.5-5.1.el7_3.x86_64                                       13/39
  Installing : audit-libs-python-2.6.5-3.el7.x86_64                                          14/39
  Updating   : libselinux-python-2.5-6.el7.x86_64                                            15/39
  Installing : setools-libs-3.3.8-1.1.el7.x86_64                                             16/39
  Installing : checkpolicy-2.5-4.el7.x86_64                                                  17/39
  Installing : libtool-ltdl-2.4.2-21.el7_2.x86_64                                            18/39
  Installing : python-IPy-0.75-6.el7.noarch                                                  19/39
  Installing : policycoreutils-python-2.5-11.el7_3.x86_64                                    20/39
  Installing : docker-engine-selinux-1.13.0-1.el7.centos.noarch                              21/39
setsebool:  SELinux is disabled.
libsemanage.semanage_direct_install_info: Overriding docker module at lower priority 100 with module at priority 400.
  Installing : libseccomp-2.3.1-2.el7.x86_64                                                 22/39
  Installing : docker-engine-1.13.0-1.el7.centos.x86_64                                      23/39
  Updating   : audit-2.6.5-3.el7.x86_64                                                      24/39
  Updating   : libgudev1-219-30.el7_3.6.x86_64                                               25/39
  Cleanup    : audit-2.4.1-5.el7.x86_64                                                      26/39
  Cleanup    : selinux-policy-targeted-3.13.1-60.el7.noarch                                  27/39
  Cleanup    : selinux-policy-3.13.1-60.el7.noarch                                           28/39
  Cleanup    : systemd-sysv-219-19.el7.x86_64                                                29/39
  Cleanup    : policycoreutils-2.2.5-20.el7.x86_64                                           30/39
  Cleanup    : libsemanage-2.1.10-18.el7.x86_64                                              31/39
  Cleanup    : systemd-219-19.el7.x86_64                                                     32/39
  Cleanup    : libselinux-utils-2.2.2-6.el7.x86_64                                           33/39
  Cleanup    : libgudev1-219-19.el7.x86_64                                                   34/39
  Cleanup    : systemd-libs-219-19.el7.x86_64                                                35/39
  Cleanup    : libselinux-python-2.2.2-6.el7.x86_64                                          36/39
  Cleanup    : libselinux-2.2.2-6.el7.x86_64                                                 37/39
  Cleanup    : libsepol-2.1.9-3.el7.x86_64                                                   38/39
  Cleanup    : audit-libs-2.4.1-5.el7.x86_64                                                 39/39
  Verifying  : libseccomp-2.3.1-2.el7.x86_64                                                  1/39
  Verifying  : libsepol-2.5-6.el7.x86_64                                                      2/39
  Verifying  : docker-engine-selinux-1.13.0-1.el7.centos.noarch                               3/39
  Verifying  : libselinux-python-2.5-6.el7.x86_64                                             4/39
  Verifying  : policycoreutils-python-2.5-11.el7_3.x86_64                                     5/39
  Verifying  : systemd-libs-219-30.el7_3.6.x86_64                                             6/39
  Verifying  : libsemanage-python-2.5-5.1.el7_3.x86_64                                        7/39
  Verifying  : libselinux-utils-2.5-6.el7.x86_64                                              8/39
  Verifying  : policycoreutils-2.5-11.el7_3.x86_64                                            9/39
  Verifying  : audit-libs-2.6.5-3.el7.x86_64                                                 10/39
  Verifying  : selinux-policy-3.13.1-102.el7_3.13.noarch                                     11/39
  Verifying  : python-IPy-0.75-6.el7.noarch                                                  12/39
  Verifying  : systemd-219-30.el7_3.6.x86_64                                                 13/39
  Verifying  : audit-2.6.5-3.el7.x86_64                                                      14/39
  Verifying  : libtool-ltdl-2.4.2-21.el7_2.x86_64                                            15/39
  Verifying  : libsemanage-2.5-5.1.el7_3.x86_64                                              16/39
  Verifying  : systemd-sysv-219-30.el7_3.6.x86_64                                            17/39
  Verifying  : audit-libs-python-2.6.5-3.el7.x86_64                                          18/39
  Verifying  : libselinux-2.5-6.el7.x86_64                                                   19/39
  Verifying  : libgudev1-219-30.el7_3.6.x86_64                                               20/39
  Verifying  : selinux-policy-targeted-3.13.1-102.el7_3.13.noarch                            21/39
  Verifying  : docker-engine-1.13.0-1.el7.centos.x86_64                                      22/39
  Verifying  : libcgroup-0.41-11.el7.x86_64                                                  23/39
  Verifying  : setools-libs-3.3.8-1.1.el7.x86_64                                             24/39
  Verifying  : checkpolicy-2.5-4.el7.x86_64                                                  25/39
  Verifying  : selinux-policy-targeted-3.13.1-60.el7.noarch                                  26/39
  Verifying  : libsemanage-2.1.10-18.el7.x86_64                                              27/39
  Verifying  : systemd-sysv-219-19.el7.x86_64                                                28/39
  Verifying  : libgudev1-219-19.el7.x86_64                                                   29/39
  Verifying  : systemd-219-19.el7.x86_64                                                     30/39
  Verifying  : selinux-policy-3.13.1-60.el7.noarch                                           31/39
  Verifying  : libselinux-utils-2.2.2-6.el7.x86_64                                           32/39
  Verifying  : libsepol-2.1.9-3.el7.x86_64                                                   33/39
  Verifying  : audit-libs-2.4.1-5.el7.x86_64                                                 34/39
  Verifying  : libselinux-python-2.2.2-6.el7.x86_64                                          35/39
  Verifying  : systemd-libs-219-19.el7.x86_64                                                36/39
  Verifying  : policycoreutils-2.2.5-20.el7.x86_64                                           37/39
  Verifying  : audit-2.4.1-5.el7.x86_64                                                      38/39
  Verifying  : libselinux-2.2.2-6.el7.x86_64                                                 39/39

Installed:
  docker-engine.x86_64 0:1.13.0-1.el7.centos

Dependency Installed:
  audit-libs-python.x86_64 0:2.6.5-3.el7              checkpolicy.x86_64 0:2.5-4.el7
  docker-engine-selinux.noarch 0:1.13.0-1.el7.centos  libcgroup.x86_64 0:0.41-11.el7
  libseccomp.x86_64 0:2.3.1-2.el7                     libsemanage-python.x86_64 0:2.5-5.1.el7_3
  libtool-ltdl.x86_64 0:2.4.2-21.el7_2                policycoreutils-python.x86_64 0:2.5-11.el7_3
  python-IPy.noarch 0:0.75-6.el7                      setools-libs.x86_64 0:3.3.8-1.1.el7

Updated:
  systemd.x86_64 0:219-30.el7_3.6

Dependency Updated:
  audit.x86_64 0:2.6.5-3.el7                           audit-libs.x86_64 0:2.6.5-3.el7
  libgudev1.x86_64 0:219-30.el7_3.6                    libselinux.x86_64 0:2.5-6.el7
  libselinux-python.x86_64 0:2.5-6.el7                 libselinux-utils.x86_64 0:2.5-6.el7
  libsemanage.x86_64 0:2.5-5.1.el7_3                   libsepol.x86_64 0:2.5-6.el7
  policycoreutils.x86_64 0:2.5-11.el7_3                selinux-policy.noarch 0:3.13.1-102.el7_3.13
  selinux-policy-targeted.noarch 0:3.13.1-102.el7_3.13 systemd-libs.x86_64 0:219-30.el7_3.6
  systemd-sysv.x86_64 0:219-30.el7_3.6

Complete!
[vagrant@localhost ~]$

hello world

[vagrant@localhost ~]$ sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
[vagrant@localhost ~]$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
78445dd45222: Pull complete
Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://cloud.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/engine/userguide/

[vagrant@localhost ~]$

setting

[vagrant@localhost ~]$ sudo systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[vagrant@localhost ~]$
[vagrant@localhost ~]$ sudo groupadd docker
groupadd: group 'docker' already exists
[vagrant@localhost ~]$ id
uid=1000(vagrant) gid=1000(vagrant) groups=1000(vagrant)
[vagrant@localhost ~]$ sudo usermod -aG docker $USER
[vagrant@localhost ~]$

after re-login

[vagrant@localhost ~]$ id
uid=1000(vagrant) gid=1000(vagrant) groups=1000(vagrant),992(docker)
[vagrant@localhost ~]$

resize file system in Cent OS 7

ref:Create Physical volume in Linux CentOS - AKAI TSUKI

  1. add physical volume to volume group
  2. expand the logical volume
  3. resize file system size

Add Physical Volume to Volume Group

before

# pvs
  PV         VG Fmt  Attr PSize  PFree
  /dev/sda2  cl lvm2 a--  37.00g  4.00m
  /dev/sda3     lvm2 ---  15.00g 15.00g
  /dev/sda4     lvm2 ---  27.00g 27.00g
#

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  cl   1   2   0 wz--n- 37.00g 4.00m
#

vgextend

# vgextend cl /dev/sda3
  Volume group "cl" successfully extended
#

after

# pvs
  PV         VG Fmt  Attr PSize  PFree
  /dev/sda2  cl lvm2 a--  37.00g  4.00m
  /dev/sda3  cl lvm2 a--  15.00g 15.00g
  /dev/sda4     lvm2 ---  27.00g 27.00g
#

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  cl   2   2   0 wz--n- 51.99g 15.00g
#

expand the logical volume

before

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  cl   2   2   0 wz--n- 51.99g 15.00g
#

# lvs
  LV   VG Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root cl -wi-ao---- 34.99g
  swap cl -wi-ao----  2.00g
#

lvextend

# lvextend -l +100%FREE /dev/cl/root
  Size of logical volume cl/root changed from 34.99 GiB (8958 extents) to 49.99 GiB (12798 extents).
  Logical volume cl/root successfully resized.
#

after

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  cl   2   2   0 wz--n- 51.99g    0
#

# lvs
  LV   VG Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root cl -wi-ao---- 49.99g
  swap cl -wi-ao----  2.00g
#

resize file system size.

before

# df -Tkh
Filesystem          Type      Size  Used Avail Use% Mounted on
/dev/mapper/cl-root xfs        35G  1.2G   34G   4% /
devtmpfs            devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs               tmpfs     1.9G     0  1.9G   0% /dev/shm
tmpfs               tmpfs     1.9G  8.4M  1.9G   1% /run
tmpfs               tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda1           xfs      1014M  182M  833M  18% /boot
tmpfs               tmpfs     380M     0  380M   0% /run/user/0
#

xfs_growfs

# xfs_growfs /
meta-data=/dev/mapper/cl-root    isize=512    agcount=4, agsize=2293248 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=9172992, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=4479, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 9172992 to 13105152
#

after

# df -Tkh
Filesystem          Type      Size  Used Avail Use% Mounted on
/dev/mapper/cl-root xfs        50G  1.2G   49G   3% /
devtmpfs            devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs               tmpfs     1.9G     0  1.9G   0% /dev/shm
tmpfs               tmpfs     1.9G  8.4M  1.9G   1% /run
tmpfs               tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda1           xfs      1014M  182M  833M  18% /boot
tmpfs               tmpfs     380M     0  380M   0% /run/user/0
#