Pycrypto 업그레이드

pycrypto 업그레이드

1 방법 1: yum[ | ]

  • rpm으로 설치되어 있다면 yum으로 업데이드 권장
[root@zetawiki ~]# rpm -qa | grep python-crypto
python-crypto-2.0.1-22.el6.x86_64
[root@zetawiki ~]# yum install python-crypto
... (생략)
Setting up Install Process
Package python-crypto-2.0.1-22.el6.x86_64 already installed and latest version
Nothing to do
→ yum으로 업그레이드하고 싶은데 상위버전이 없음 ㅠㅠ
[root@zetawiki ~]# yum remove python-crypto-2.0.1-22.el6.x86_64
... (생략)
======================================================================================================
 Package             Arch       Version            Repository                                    Size
======================================================================================================
Removing:
 python-crypto       x86_64     2.0.1-22.el6       @anaconda-CentOS-201303020151.x86_64/6.4     565 k
Removing for dependencies:
 cas                 noarch     0.15-1.el6.1       @anaconda-CentOS-201303020151.x86_64/6.4     385 k
 python-paramiko     noarch     1.7.5-2.1.el6      @anaconda-CentOS-201303020151.x86_64/6.4     7.6 M

Transaction Summary
======================================================================================================
Remove        3 Package(s)

Installed size: 8.6 M
Is this ok [y/N]: y
... (생략)
Removed:
  python-crypto.x86_64 0:2.0.1-22.el6                                                                 

Dependency Removed:
  cas.noarch 0:0.15-1.el6.1                   python-paramiko.noarch 0:1.7.5-2.1.el6                  

Complete!
→ 삭제하고 방법 2로 진행

2 방법 2: pip[ | ]

2.1 Crypto 모듈 버전 확인[ | ]

[root@zetawiki ~]# python -c 'import Crypto; print( Crypto.__version__ );'
2.0.1

2.2 python-pip 설치[ | ]

2.3 python-devel 설치[ | ]

2.4 pycrypto 버전 확인[ | ]

[root@zetawiki ~]# pip list | grep pycrypto
pycrypto (2.0.1)

2.5 pycrypto 업그레이드[ | ]

[root@zetawiki ~]# pip install pycrypto --upgrade
Downloading/unpacking pycrypto from https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz#md5=55a61a054aa66812daf5161a0d5d7eda
  Running setup.py egg_info for package pycrypto
Installing collected packages: pycrypto
  Found existing installation: pycrypto 2.0.1
    Uninstalling pycrypto:
... (생략)
lib.linux-x86_64-2.6/Crypto/Util/_counter.so
Successfully installed pycrypto
Cleaning up...

2.6 pycrypto 버전 확인 2[ | ]

[root@zetawiki ~]# pip list | grep pycrypto
pycrypto (2.6.1)

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}