如何安装和使用oecp工具?

运行环境:python3>3.7.9、sqlite>v3.7.17

下载安装与部署的要求:

install abidiff (centos): ''' yum install -y epel-release; yum install -y libabigail '''

install createrepo: ''' yum install -y createrepo '''

install binutils: ''' yum install -y binutils '''

注意:openeuler需要配置openEuler-20.03-SP2以上版本everything仓库 install abidiff (openEuler): ''' yum install -y libabigail '''

install oecp: ''' git clone oecp: One for OSV as an certification tool; cd oecp; pip3 install -r requirement '''

本次安装环境:

openEuler20.03

由于自带python3版本为3.7.4,低于oecp工具要求,所以需要先升级Python3版本

1.升级python3

[root@localhost ~]# wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
[root@localhost ~]# tar xf Python-3.7.16.tgz
[root@localhost ~]# cd Python-3.7.16
[root@localhost ~]# ./configure prefix=/usr/local/python3.7
[root@localhost ~]# make && make install
[root@localhost ~]# ll /usr/bin/python3
lrwxrwxrwx. 1 root root 9 Mar 24  2020 /usr/bin/python3 -> python3.7
[root@localhost ~]# ll /usr/bin/python3.7
-rwxr-xr-x. 2 root root 15K Mar 24  2020 /usr/bin/python3.7
[root@localhost ~]# python3 -V
Python 3.7.4
[root@localhost ~]# rm -f /usr/bin/python3
[root@localhost ~]# rm -f /usr/bin/pip3
[root@localhost ~]# ln -s /usr/local/python3.7/bin/python3.7 /usr/bin/python3
[root@localhost ~]# ln -s /usr/local/python3.7/bin/pip3.7 /usr/bin/pip3
[root@localhost ~]# python3 -V
Python 3.7.16
升级完成。

2.修改pip源为国内并更新版本

[root@localhost ~]# mkdir ~/.pip
[root@localhost ~]# cd ~/.pip
[root@localhost ~]# vi pip.conf
[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
[root@localhost oecp]# pip install --upgrade pip
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting pip
  Downloading http://mirrors.aliyun.com/pypi/packages/27/79/8a850fe3496446ff0d584327ae44e7500daf6764ca1a382d2d02789accf7/pip-20.3.4-py2.py3-none-any.whl (1.5MB)
    100% |████████████████████████████████| 1.5MB 463kB/s 
Installing collected packages: pip
  Found existing installation: pip 18.0
    Uninstalling pip-18.0:
      Successfully uninstalled pip-18.0
Successfully installed pip-20.3.4

3.下载oecp并安装

[root@localhost ~] git clone https://gitee.com/openeuler/oecp.git
[root@localhost oecp]# cd /root/oecp/
[root@localhost oecp]# pip3 install -r requirement
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting bs4
  Downloading http://mirrors.aliyun.com/pypi/packages/10/ed/7e8b97591f6f456174139ec089c769f89a94a1a4025fe967691de971f314/bs4-0.0.1.tar.gz (1.1 kB)
Collecting tqdm
  Downloading http://mirrors.aliyun.com/pypi/packages/47/bb/849011636c4da2e44f1253cd927cfb20ada4374d8b3a4e425416e84900cc/tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
     |████████████████████████████████| 78 kB 459 kB/s 
Collecting python-magic
..........

4.运行oecp脚本检测ISO

注意:内存需要大于2G,磁盘空间也要预留够,否则运行脚本会提示内存或磁盘空间不足。

[root@localhost ~]# python3 cli.py -w /root/diff /root/CentOS-7-x86_64-DVD-2009.iso /root/openEuler-20.03-LTS-x86_64-dvd.iso

运行完成后,会提示文件存放地址

 ​​​​​​​

 报表可下载到本地,有详细的ISO数据对比

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值