[英]How do I make my own package?
I apologize for the broad question, I'll try my best to explain here. 对于这个广泛的问题,我深表歉意,我将尽力在这里进行解释。
I want to make my own package that can be installed with apt-get install
and then being able to use its commands once it is installed. 我想制作自己的软件包,可以使用
apt-get install
,然后在apt-get install
后即可使用其命令。 I just don't know where to look in order to learn how to do this. 我只是不知道要去哪里看才能学习如何做。
What language should I use? 我应该使用哪种语言? Specifically for creating file structures and writing to files with user inputs as well.
专门用于创建文件结构以及使用用户输入写入文件。
Read a lot more about .deb packages, eg deb(5) (for Debian and Ubuntu). 阅读有关.deb软件包的更多信息,例如deb(5) (用于Debian和Ubuntu)。 There is lots of documentation about it (eg Packaging wiki)
关于它有很多文档(例如Packaging Wiki)
Study existing packages for inspiration. 研究现有的软件包以获取灵感。
Other distributions have different package managers , eg rpm , etc.... 其他发行版具有不同的软件包管理器 ,例如rpm等。
(the evil is in the details, and they vary from one distribution to the next; in some cases, a .deb
for Debian is not nicely working on Ubuntu; quite often it does) (邪恶之处在于细节,它们在不同的发行版之间有所不同;在某些情况下,Debian的
.deb
在Ubuntu上不能很好地工作;通常它可以做到)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.