浏览代码

update readme

ruki 4 年之前
父节点
当前提交
fb6b7a4a74
共有 2 个文件被更改,包括 15 次插入3 次删除
  1. 8 2
      README.md
  2. 7 1
      zh-cn/README.md

+ 8 - 2
README.md

@@ -148,14 +148,20 @@ $ xrepo fetch --cflags --ldflags conan::zlib/1.2.11
 -I/Users/ruki/.conan/data/zlib/1.2.11/_/_/package/f74366f76f700cc6e991285892ad7a23c30e6d47/include -L/Users/ruki/.conan/data/zlib/1.2.11/_/_/package/f74366f76f700cc6e991285892ad7a23c30e6d47/lib -lz
 ```
 
-### Export the installed packages
+### Import and export packages
 
-xrepo can quickly export installed packages, including corresponding library files, header files, etc.
+xrepo can quickly export the installed packages, including the corresponding library files, header files, and so on.
 
 ```console
 $ xrepo export -o /tmp/output zlib
 ```
 
+You can also import the previously exported installation package on other machines to implement package migration.
+
+```console
+$ xrepo import -i /xxx/packagedir zlib
+```
+
 ### Search supported packages
 
 ```console

+ 7 - 1
zh-cn/README.md

@@ -149,7 +149,7 @@ $ xrepo fetch --cflags --ldflags conan::zlib/1.2.11
 -I/Users/ruki/.conan/data/zlib/1.2.11/_/_/package/f74366f76f700cc6e991285892ad7a23c30e6d47/include -L/Users/ruki/.conan/data/zlib/1.2.11/_/_/package/f74366f76f700cc6e991285892ad7a23c30e6d47/lib -lz
 ```
 
-### 导出安装后的包
+### 导入导出安装后的包
 
 xrepo 可以快速导出已经安装后的包,包括对应的库文件,头文件等等。
 
@@ -157,6 +157,12 @@ xrepo 可以快速导出已经安装后的包,包括对应的库文件,头
 $ xrepo export -o /tmp/output zlib
 ```
 
+也可以在其他机器上导入之前导出的安装包,实现包的迁移。
+
+```console
+$ xrepo import -i /xxx/packagedir zlib
+```
+
 ### 搜索支持的包
 
 ```console