https://github.com/yomun/bcloud-build
bcloud 是 Linux 版的 百度云网盘
现由 Yufeikang 接手 https://github.com/Yufeikang/bcloud
但不提供新的 bcloud 安装软件包下载,
所以本人自己制作新的安装包 DEB / RPM / TAR.XZ / TBZ2
不喜欢, 可以自己编译.. 需要的文件已准备好了.
广告
本站里的文章大部分经过自行整理与测试
2017年11月5日星期日
2017年10月30日星期一
Linux - 从源码编译 RPM
1) 在 Ubuntu 安装 rpmbuild 和 rpmlint
$ sudo apt install rpm rpmlint
* 在 Fedora, 可以用 rpmrebuild -p -e xxx.rpm 来得到 spec 文件
2) 准备源码 (tar.gz) 与 SPEC 文件
例子:
https://github.com/yomun/youdao-dict-rpm/blob/master/youdao-dict.temp.spec
3) 检查 SPEC 文件上编写是否有错误
$ rpmlint youdao-dict.spec
4)编译 RPM
将源码与 SPEC 分别放到 ~/rpmbuild/SOURCES 和 ~/rpmbuild/SPEC
$ fakeroot rpmbuild -ba youdao-dict.spec --target x86_64
5) 安装 rpm
$ sudo rpm -i youdao-dict-1.1.1-0.x86_64.rpm
例子:
https://github.com/yomun/youdao-dict-rpm/raw/master/build.sh
$ sudo apt install rpm rpmlint
* 在 Fedora, 可以用 rpmrebuild -p -e xxx.rpm 来得到 spec 文件
2) 准备源码 (tar.gz) 与 SPEC 文件
例子:
https://github.com/yomun/youdao-dict-rpm/blob/master/youdao-dict.temp.spec
3) 检查 SPEC 文件上编写是否有错误
$ rpmlint youdao-dict.spec
4)编译 RPM
将源码与 SPEC 分别放到 ~/rpmbuild/SOURCES 和 ~/rpmbuild/SPEC
$ fakeroot rpmbuild -ba youdao-dict.spec --target x86_64
5) 安装 rpm
$ sudo rpm -i youdao-dict-1.1.1-0.x86_64.rpm
例子:
https://github.com/yomun/youdao-dict-rpm/raw/master/build.sh
Linux - DEB 与 RPM 包间的转换
1) 安装 alien
$ su
$ apt install alien
2) 转换 deb -> rpm
$ alien -r squid_3.1.23-10_amd64.deb
3) 转换 rpm -> deb
$ alien squid-3.1.23-9.el6.x86_64.rpm
$ su
$ apt install alien
2) 转换 deb -> rpm
$ alien -r squid_3.1.23-10_amd64.deb
3) 转换 rpm -> deb
$ alien squid-3.1.23-9.el6.x86_64.rpm
订阅:
博文 (Atom)