packaging

Where to install custom software packages on FreeBSD?

Where to install custom software packages on FreeBSD? In Linux, according to the Filesystem Hierarchy Standard, /opt is the designated location for add-on application software packages. Thus, when developing my own software package, which is not a dependency for anything else, I would place that in /opt/somepackage, with a hierarchy of my choice underneath. FreeBSD, …

Total answers: 3

Check for non-interactive mode in Debian package maintainer scripts

Check for non-interactive mode in Debian package maintainer scripts If I’m writing a Debian package maintainer script (such as a pre-install script) for a package I create, how can I make the script determine if it is supposed to be running in non-interactive mode (e.g. if apt-get install was invoked with -y, and things like …

Total answers: 1

Package maintainer pre-inst script `install` vs `upgrade`

Package maintainer pre-inst script `install` vs `upgrade` According to the Debian package maintainer script documentation, the pre-install script can be called with either the install or the upgrade first argument: The preinst script may be called in the following ways: new-preinst install new-preinst install old-version new-version new-preinst upgrade old-version new-version What is the difference between …

Total answers: 2

Building debian package fails when destination is /usr/local/bin

Building debian package fails when destination is /usr/local/bin I created a very simple C project and want to build a debian package from it. Manually building the C project via the Makefile works as expected, it build the binary and can be installed in /usr/local/bin. When trying to build a debian packages however it fails …

Total answers: 1

Debian package version comparing explanation

Debian package version comparing explanation I’m a bit confused about the Debian package version orders. Take a look at the following two Debian package versions, how come the first is <= than the second? 0-emacs-29.1.90~202401142128~ubuntu20.04.1 0-emacs-28.3-rc1~202302201437~ubuntu20.04.1 I’m thinking that 29 > 28 so the first should be more recent, no? Asked By: xpt || Source …

Total answers: 1

Is it possible to query versions of APT packages from not-my-current release without editing sources.list?

Is it possible to query versions of APT packages from not-my-current release without editing sources.list? I’ve been learning about Linux package management recently (https://superuser.com/questions/393681/how-to-find-out-which-versions-of-a-package-can-i-install-on-apt, https://askubuntu.com/questions/340530/how-can-i-check-the-available-version-of-a-package-in-the-repositories, Why do different Linux distros have different package formats (and package managers)?, https://itsfoss.com/ubuntu-repository-mechanism/, https://itsfoss.com/sources-list-ubuntu/) If I understand correctly, /etc/apt/sources.list (and .list/.sources files in /etc/apt/sources.list.d/) controls where apt-get (and related utilities) …

Total answers: 2

How to install package versions not available with apt-get?

How to install package versions not available with apt-get? I’d like to install libuv on a Ubuntu WSL instance, and I specifically need version 1.45.0 or later. My understanding (from this tutorial article) is that the command to find out what versions of a package are available to install is apt list | grep: $ …

Total answers: 2

When installing, command in `postinst` always results in `$?` = `0`

When installing, command in `postinst` always results in `$?` = `0` I have a postinst script in my debian package: #!/bin/bash oqm-config -g system.hostname RESULT="$?" if [ "$RESULT" -eq 1 ]; then oqm-config -s system.hostname $(hostname).local "." fi This is intended to populate a config variable (if it doesn’t exist). These commands function outside of …

Total answers: 1

How do you define a dynamic default value in a Debian package template?

How do you define a dynamic default value in a Debian package template? I have a package where I want the administrator to enter a list of interface names. I’d like that list to have a default. Only each system has a different list (eth0, enp0s3, eno1, to list a few). Here is an example …

Total answers: 1

How should versioning of debian packages work with git?

How should versioning of debian packages work with git? As I understand it, debian packages should be named NAME_VERSION_ARCHITECTURE. but when I use git as version control it and I rename the folder, it threats all files as deleted and then new. Is there a workaround to the NAME_VERSION_ARCHITECTURE name? Asked By: Simon Van den …

Total answers: 1

How to build GNU Hello .deb?

How to build GNU Hello .deb? I can’t seem to work out how to build GNU Hello on Ubuntu 22.04. To reproduce, start a Docker container using docker run –interactive –rm –tty ubuntu:22.04, then run the following: apt-get update apt-get install -y debhelper-compat dpkg-dev wget cd "$(mktemp –directory)" wget http://archive.ubuntu.com/ubuntu/pool/main/h/hello/hello_2.10.orig.tar.gz http://archive.ubuntu.com/ubuntu/pool/main/h/hello/hello_2.10-2ubuntu4.dsc http://archive.ubuntu.com/ubuntu/pool/main/h/hello/hello_2.10-2ubuntu4.debian.tar.xz tar -xf hello_2.10-2ubuntu4.debian.tar.xz …

Total answers: 1

How to start a 3rdparty systemd service from a debian package

How to start a 3rdparty systemd service from a debian package I have a debian package which contains configuration for systemd-networkd e.g. I configure my interface IP. That only makes sense if systemd-networkd is running. Because of that I want to ensure that the service is enabled and running. But putting this in postinst feels …

Total answers: 1

Number of cores used by snapcraft when building snap

Number of cores used by snapcraft when building snap I am using snapcraft to build chromium. I see that it creates a VM with Multipass. $ snapcraft Support for ‘multipass’ needs to be set up. Would you like to do it now? [y/N]: Y … multipass 1.10.1 from Canonical✓ installed Waiting for multipass… Launching a …

Total answers: 1

Do Ubuntu releases "pin" a specific Python minor version ("3.9.X")?

Do Ubuntu releases "pin" a specific Python minor version (e.g. 3.9)? I’m curious if Ubuntu "pins" minor Python versions for each of its releases. Looking at the package details for python3 in Focal, compared to other LTS releases, e.g. Bionic seems to be sticking to Python 3.6. Is this documented anywhere to be true? Or …

Total answers: 1

From program to complete project, what does a "real" Unix app require?

From program to complete project, what does a "real" Unix app require? I’m finishing off a small command-line BASIC interpreter for Unix. It currently consists of a dozen sources and headers, a makefile, test files and an Xcode project for working on the Mac. This is my first pure-CLI project. Releasing an app on iOS …

Total answers: 1

Why are there pre-compiled packages in repositories?

Why are there pre-compiled packages in repositories? I love (the way) how Linux & Co. lets users install many packages from different repositories. AFAIK, they come also with source-packages, so you can compile them by yourself. But why even bother to "keep/offer" pre-compiled packages, when you could just compile them yourself? What are the intentions …

Total answers: 5

Debian Build-Depends on non-package binary

Debian Build-Depends on non-package binary I am developing a Rust application and I want to provide packages for Debian. I have something similar to this configuration under debian/controls Source: com.github.yourname.yourrepo Section: x11 Priority: extra Maintainer: Someone Build-Depends: cargo, debhelper (>= 9), libgtk-3-dev, libglib2.0-dev Standards-Version: 3.9.3 Package: com.github.yourname.yourrepo Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: SomeApp Some …

Total answers: 2

Launchpad builderror – Can't locate Debian/Debhelper/Sequence/python3.pm

Launchpad builderror – Can't locate Debian/Debhelper/Sequence/python3.pm I am getting the following error while trying to package a source file using a Launchpad recipe. However, I can successfully build the package in my machine (running 18.04) dh: error: unable to load addon python3: Can’t locate Debian/Debhelper/Sequence/python3.pm Here is the full buildlog, and my debian/control file is …

Total answers: 2