Files
linux-wiki/content/deepin折腾笔记/第五章/5.22.1.md
2021-10-21 14:57:58 +08:00

8 lines
479 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 5.22.1 通过源码编译升级软件包
1. 安装公钥:`sudo apt install debian-keyring` #开发者公钥
2. 安装依赖:`sudo apt build-dep XXX`
3. 下载源码:`apt source XXX`
4. 替换源码或修改源码
5. 重新编译cd 源码目录 && dpkg-buildpackage -rfakeroot -uc -b
6. 覆盖安装:`sudo dpkg -i *.deb`第5步执行之前可能需要先安装制作工具`sudo apt install fakeroot dh-make`