Questions tagged [packaging]

creating packages for software installation, such as .deb (Debian & derivatives), .rpm (RHEL/CentOS), .bff (AIX), Solaris pkg / pkgadd, etc. Do NOT use this tag for /software-installation or /package-management

Filter by
Sorted by
Tagged with
3 votes
1 answer
41 views

Where should test executables be installed?

I am packaging a component that will also have test executables packaged with it (ideally in a separate package from the runtime package). Ideally, I don't want to package them in /usr/bin since the ...
Paul Fultz II's user avatar
1 vote
0 answers
27 views

How does apk's replaces work when the package being replaced gets upgraded?

Say I have a package A, and package B. Package B contains some files which deliberately conflict with package A, and it is desirable for package B's files to be favoured over the ones in package A if ...
Newbyte's user avatar
  • 946
0 votes
1 answer
30 views

How to get snapcraft CLI on Arch Linux?

Following the instructions on https://snapcraft.io/docs/installing-snap-on-arch-linux, I've got a snap command on my computer. I can use the snap tool to login/etc, but I want to create a snap package ...
Dr-Bracket's user avatar
1 vote
1 answer
1k views

Signature from "TNE <[email protected]>" is unknown trust - Invalid or Corrupted package

While running pacman -Syu After "(8/8) checking package integrity" I'm facing the following issue with these packages: error: 7-zip: signature from "TNE <[email protected]>"...
Lucas_Guerra's user avatar
0 votes
1 answer
112 views

Common practice for config files

I'm making a file manager system for managing my projects. My package is named filesystem. I need a config file that stores the path to the root of my file system. I think I need to create a file /etc/...
Simon Van den Bossche's user avatar
1 vote
1 answer
65 views

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). ...
Alexis Wilke's user avatar
  • 2,765
0 votes
1 answer
38 views

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 ...
Simon Van den Bossche's user avatar
0 votes
1 answer
65 views

Could not execute mockbuild: Could not download sources

When writing a .spec file for Fedora, I ran into a problem. I can't seem to be able to do fedpkg mockbuild at all. No matter what source I use, HTTPS or local, I keep running into this error: Failed ...
Ignis Incendio's user avatar
1 vote
0 answers
135 views

How to package a Maven Java application for Debian?

I am trying to package a Java application that is built with Maven. I created the debian/ folder with mh_make and I have been reading/watching the tutorials: https://wiki.debian.org/Java/Packaging/...
Slav's user avatar
  • 11
1 vote
0 answers
30 views

Bundle library for two architectures in the same package

I need to ship a Racket package that is cross compatible on x86 and arm. I have a shared library I depend on via FFI that I would like to bundle in, so that the user doesn't need to install it. What ...
Nate's user avatar
  • 134
0 votes
1 answer
58 views

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 ...
l0b0's user avatar
  • 50.8k
0 votes
0 answers
115 views

unable to modify source directory in debuild

In my project, I use CMake and the source directory is not under the debian directory. I understand that I have to use the --sourcedirectory option in the rules to set the directory containing the ...
Bruno Guerraz's user avatar
1 vote
0 answers
244 views

build Debian package "chromium 108" on Debian Buster

I am trying to build chromium 108 for Debian Buster. The package only exists for Debian Bullseye, so on my Debian Buster build machine, I need to change the /etc/apt/sources.list to bullesyse and ...
Martin Vegter's user avatar
1 vote
1 answer
602 views

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 ...
Sir l33tname's user avatar
3 votes
2 answers
142 views

How are binary packages isolated from host system?

How are binary packages (rpm, deb, etc) created for binutils, gcc and other packages that link to different libs depending on what exists on the host system? In the LFS project, to isolate the new ...
C. Lang's user avatar
  • 133
1 vote
0 answers
35 views

Is it possible to harden systemd below 7.0 if my package needs permissions to install other packages?

I am not sure if my question has a proper answer but I still wanted to try. I want to harden my app systemd, the problem is that my package needs permissions to install other packages (that is one of ...
Peksio's user avatar
  • 121
14 votes
1 answer
9k views

How to package my software in nix or write my own package derivation for nixpkgs

How can I write a simple derivation to package a program for nix and how can I create a PR to include it in nixpkgs? (I am writing this as I can't find simple explanations)
tobiasBora's user avatar
  • 3,741
1 vote
0 answers
103 views

apt-get is asking for an older .deb file from a local repo even after putting a newer version

I have a local repository setup on the server (server1) hosted by Nginx. It has few .deb packages and a bash script on another local server (server 2) uses the repo to install packages. I had to ...
Cruise5's user avatar
  • 476
1 vote
1 answer
29 views

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 ...
Maury Markowitz's user avatar
1 vote
0 answers
113 views

Creating rpm/deb packages for different configurations of my app which will replace each other

TL;DR I want to ship my application in two configurations: basic package and full package with additional modules. How do i do that? I have two packages for my application for CentOS: app.rpm which is ...
tbsd's user avatar
  • 11
0 votes
1 answer
843 views

apt can't install anything after manually upgrading kernel to 5.18

I got a new laptop for work and now destroyed it lol I installed Debian 11 with LVM and everything I needed. How I ended up in this situation Everything was perfect, except for my docking station ...
Zio's user avatar
  • 1
1 vote
1 answer
159 views

dpkg-genbuildinfo: error: badly formed line in files list file, line 1

I am trying to debianize a collection of shell scripts. The build itself is quite simple, as there are no binaries to build – every file that will be installed on the target system is already present ...
user149408's user avatar
  • 1,125
15 votes
5 answers
5k views

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 ...
Ben's user avatar
  • 299
0 votes
1 answer
265 views

I need a package for my version of RHEL/EPEL/CentOS/Fedora, but it's only packaged for other versions of Redhatoids

I'm often in the situation where I backport some fedora-packaged software to CentOS, or forward-port something from an older version of EPEL to Fedora, or vice versa. How can I do that with the least ...
Marcus Müller's user avatar
1 vote
1 answer
613 views

How to create from sources deb packages for different architectures

I have to install a software on some devices with debian package, it isn't available for their architectures on apt for debian (but it is available for other distibutions as e.g. ubuntu), and they ...
AndreaF's user avatar
  • 145
1 vote
1 answer
88 views

How to prevent broken dependencies on own packages?

Two nights ago I compiled Calamares. The next morning, when trying to run it, I got: /usr/bin/calamares: error while loading shared libraries: libkpmcore.so.11: cannot open shared object file: No ...
Alberto Salvia Novella's user avatar
1 vote
1 answer
910 views

How do I build a .flatpak package file from a Flatpak manifest?

I have a Flatpak manifest I'm submitting to Flathub, but I'd also like to build a .flatpak package file that I can redistribute myself. How can I go about doing this? I don't find anything in flatpak-...
Newbyte's user avatar
  • 946
3 votes
1 answer
1k views

If I do not care about debug support in red hat packages, what are the drawbacks of turning build-id support off in the specs file?

As a follow up on this question, what if I am not interested in having these debug features - how do I simply prevent these build-id files (debug info packages?) from being installed ? Ultimately I do ...
Veverke's user avatar
  • 348
1 vote
1 answer
733 views

How does apt keep track of BUILD (source) dependencies?

I want to download all (recursive) build dependencies to be able to build apt (debian) package from source. However, when I apt-get install path/*.debs with debs that I got by apt build-dep --download-...
Martian2020's user avatar
  • 1,147
0 votes
0 answers
66 views

How make apt recognize newer oracle Java version

I used make-jpkg from the package java-package to create a new oracle-java8-jre Debian package. Everything works as expected, only apt wants always to update Java. Is there a way to make apt recognize ...
Max's user avatar
  • 335
0 votes
1 answer
192 views

Where to place a bash command while building debian package

I need to build a debian package using sbuild. This package has dependencies that it can't automatically resolve - specifically the dependencies point to versions for which there are already newer ...
Piotr G's user avatar
  • 111
0 votes
1 answer
194 views

How to distribute custom library builds with a .deb package?

My company uses a set of internal programs that require custom builds of third-party libraries (like OpenCV). These libraries exist in the Ubuntu repositories, but these existing packages weren't ...
acl's user avatar
  • 101
1 vote
1 answer
910 views

building Debian package fails after even a minor change to code

I am able to build Debian package make using following procedure: apt-get source make cd make-* dpkg-buildpackage --build=binary --no-sign But as soon as I make any change to the code, even changing ...
Martin Vegter's user avatar
1 vote
1 answer
839 views

Conditional dependencies in `debian/control` file

I'm packaging the software, which depends on a particular version of a library shipped in the official Debian distribution. The software also has a bundled sources of the library. Is there any way to ...
zaufi's user avatar
  • 125
0 votes
1 answer
226 views

distributing my binary and installing dependencies

I have a single binary file that I want to distribute to our users and most of its dependencies are linked statically during build time, but there are few dependencies like leveldb that need to be ...
curiousJorgeXX's user avatar
1 vote
0 answers
411 views

How to package appimage properly?

I am trying to package my application in appimage format. I'm using appimage-builder to do so, and using Ubuntu 18.04, as appimage-builder documentation recommends. But I am unable to do so. I cloned ...
apoorv569's user avatar
0 votes
2 answers
151 views

Passing options to lintian in pdebuild

debuild has an option --lintian-opts that allows to pass options to lintian. How can I pass options to lintian from pdebuild?
maf's user avatar
  • 123
1 vote
0 answers
261 views

How to assign new file to package in postinst script

In the postinst script of a Debian package, I create and install a file with a name not known in advance. How can I assign that file to the package so it shows up in dpkg-query --search as belonging ...
maf's user avatar
  • 123
0 votes
1 answer
36 views

List all available sources packages that doesn't have a binay packages

I need to get the list of sources packages that doesn't have a binary packages on Debian. Listing all sources packages may be an answer, so we can get the diff between the available binary and the ...
GAD3R's user avatar
  • 64.4k
4 votes
1 answer
170 views

Step by step instructions to abandon a Debian package and no longer be its maintainer

I am marked as the Debian maintainer of a package. I no longer wish to be the maintainer of this project. I thought I had gone through the process of abandoning the package, but it looks like I haven'...
Flimm's user avatar
  • 4,108
2 votes
1 answer
2k views

Build debian package using stdeb

I have been trying to build .deb packages for Debian from Python modules. After going through Debian's LibraryStyleGuide for Python, Pybuild and An Overview of Packaging for Python, I decided I am ...
cryptoknight's user avatar
1 vote
1 answer
95 views

Debian changelog file width?

What is the max width in characters of a debian changelog file? I thought it is 80 columns, but I can't find where I had read that. I didn't find the answer in these references (unless I missed it)... ...
Enterprise's user avatar
0 votes
1 answer
256 views

Error in installing packages in pop os

Not able to load packages in Eddy. Getting this following error: E: Unable to parse package file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_focal-backports_InRelease (1) E: The package ...
Vedansh Tyagi's user avatar
0 votes
1 answer
672 views

When I run newapkbuild in a container I get "ERROR: : Do not run abuild as root"

I'm trying to containerize my build work flow. I do not run Alpine on the metal or in a VM but I do launch Alpine Containers. When building a new Alpine package, I'm using newapkbuild but because I'm ...
Evan Carroll's user avatar
  • 29.7k
1 vote
1 answer
408 views

How can I make an Alpine package conflict with another Alpine package?

Currently Alpine packages Perl, however that version of Perl is built with the wrong options for my needs. So I want to package a new version Perl built with different configuration/build options. Is ...
Evan Carroll's user avatar
  • 29.7k
0 votes
1 answer
587 views

How apt know if an obsolete package is replaced by another one?

During the installation of mysql-server on raspbian buster, apt say that mysql-server isn't available and suggest mariadb-server-10.0 as replacement. How apt know if a package is replaced with another ...
GAD3R's user avatar
  • 64.4k
1 vote
1 answer
266 views

debuild can't find rustc

I am trying to package my Rust application for Debian but I encounter some issues. I try to build with debuild -us -uc but it gives the error Running "rustc --version" gave "[Errno 2] ...
Aiono's user avatar
  • 133
2 votes
2 answers
175 views

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 ...
Aiono's user avatar
  • 133
1 vote
1 answer
93 views

What is architecture specific about libtool?

Fedora packages libtool as 64-bits: # rpm -qi libtool |grep ^Arch Architecture: x86_64 However, a superficial look at the package contents doesn’t show any obvious arch specific binaries: # rpm -ql ...
phg's user avatar
  • 1,782
0 votes
0 answers
162 views

RPM subpackages are not built on centos 8

I have a tool mypackage with 2 subpackages foo and bar. On centos 7, everything is fine, the two packages mypackage-foo and mypackage-bar are built. On centos 8 there is only one package mypackage ...
Bruno Guerraz's user avatar

1
2 3 4 5
7