How Do I Create a Linux Package?
Contents

How do I get packages in Linux?

How do I see what packages are installed on Ubuntu Linux?

  1. Open the terminal application or log in to the remote server using ssh (e.g. ssh [email protected] )
  2. Run command apt list –installed to list all installed packages on Ubuntu.
  3. To display a list of packages satisfying certain criteria such as show matching apache2 packages, run apt list apache.

30 янв. 2021 г.

How do I create a .deb file?

The right way of building a deb package is using dpkg-buildpackage but sometimes it is a little bit complicated. Instead you can use dpkg -b <folder> and it will create your Debian package. Here is an example of the control file.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest