Ubuntu and Debian proprietary package build private source details

  • 2020-05-12 06:46:03
  • OfStack

Ubuntu/Debian own packages build private sources

When it comes to building your own private yum source, linux is familiar with the createrepo command of redhat series. With the rpmbuild command, it is quite easy to create a private yum. What if we switch to the debian series? The previous documentation explained how to make deb packages for the debian series, but not the apt-get private source, although debian has a similar createrepo command. Let's take a look at the process of making a private apt source

Installation and production tools:

apt-get install dpkg-dev

Create the deb file directory

mkdir -p /usr/local/mydeb

Copy the deb package to the deb file directory

cp xxx.deb /usr/local/mydeb

Make the private source package information

cd /usr/local
dpkg-scanpackages mydeb /dev/null | gzip -9c > mydeb/Packages.gz

Use the web server to set up the private source service

#apt-source

deb http://hostname/local mydeb

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: