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
0
votes
1answer
16 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 ...
0
votes
1answer
18 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 ...
0
votes
0answers
22 views

rpm package - Converting from .deb package or build new rpm

I have a software that I need to ship. Right now I ship it through a .deb and a .run file but I want to drop the .run file replacing with a .rpm file. The way I want to to create the rpm package is ...
2
votes
1answer
230 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 ...
1
vote
1answer
95 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 ...
0
votes
1answer
28 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 ...
1
vote
0answers
73 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 ...
0
votes
2answers
22 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?
0
votes
0answers
30 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 ...
0
votes
1answer
22 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 ...
1
vote
1answer
61 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'...
0
votes
0answers
22 views

How to create font alias that appears in font pickers?

I'm packaging a Java/AWT application that's hardcoded to use Microsoft fonts, which are missing on Linux. I could just install them as a dependency, but there's a side effect: some websites now render ...
0
votes
1answer
260 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 ...
0
votes
0answers
19 views

Requirements to ready Debian for package updates from a yet to be created Debian Repo?

In addition to a line in sources.list and a public key in a keyring somewhere, is there a need for any other items in our Debian OS install to allow it to automatically pull packages from our (as yet ...
0
votes
1answer
30 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)... ...
0
votes
1answer
26 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 ...
0
votes
1answer
148 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 ...
1
vote
1answer
112 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 ...
0
votes
1answer
167 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 ...
1
vote
1answer
62 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] ...
1
vote
1answer
24 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 ...
1
vote
1answer
48 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 ...
0
votes
0answers
42 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 ...
0
votes
2answers
34 views

how to manage %files section in spec without environment variables

I am creating a package for a software using MPICH. The binaries must be installed on the mpich directory. This directory depends on the mpich version (/usr/lib64/mpich-3.2/ or /usr/lib64/mpich/). For ...
4
votes
2answers
1k views

How to create a debian package from a bash script and a systemd service?

How to build a debian package from a bash script and a systemd service? The systemd service will control the script by starting/stoping ready to use after the .deb will be installed successfully. From ...
1
vote
1answer
80 views

What's the most hassle-free way to publish an application cross-distro? [closed]

I have an Electron program I want to distribute on all three major OSs. Publishing on Windows and macOS is easy enough; One installation file and we're done, plus the users of these OSs are used to ...
0
votes
1answer
25 views

Where to place permanent file in debian package?

My company has a debian repository which has new gpg keys. We want to generate new package versions which add these keys to /etc/apt/trusted.gpg.d. The caveat is that we only want to add those in that ...
0
votes
1answer
36 views

Same RPM for multiples CentOS major versions

I've created a little bash script and build it into a RPM package. This little bash script works very well on CentOS 5, CentOS 6 and CentOS 7 (and probably on CentOS 8, not checked) My question is: Do ...
0
votes
2answers
159 views

How do you make a apt or .deb Package for debian? [closed]

So lately I've been trying to find a way to make an apt or a .deb package to make it easier for people to install and use packages without using the commander line but, to even start doing that I need ...
1
vote
1answer
549 views

How can I publish a deb package?

I don't know much about packaging and it took me a a week to create a working deb for my software. Now I need a way for people to install it and I don't want to just create a download link for the deb....
0
votes
0answers
93 views

Get around ~10GB maximum archive size

I am trying to package a Linux software into a DEB archive so it can easily be installed on Debian / Ubuntu. Unfortunately the full software is about 13 GB in size, and whenever I try to create a ...
3
votes
1answer
328 views

Creating an Alpine package

I'm trying to create an apk package. I followed the Alpine Linux - Creating an Alpine package HOWTO. I think everything is set up as needed. When I try to build package, I get an error: abuild -r ...
1
vote
0answers
246 views

How to sign my own Arch Linux git packages for adding to a private repo?

I already have a GPG key configured. I have cloned the git source code package locally. I'm building in a chroot with extra-x86_64-build. I am able to build packages without signing and add them to ...
0
votes
1answer
66 views

Current/working directory issue from wrapper

A common packaging issue I encounter is when a tool is looking for relative resources in its root directory (install directory). Eg. pkg-name (/usr/share/pkg-name/pkg-name) is looking for resourceA (/...
2
votes
1answer
213 views

Build RPM subpackages without a base package

According to a RPM documentation/guide (http://ftp.rpm.org/max-rpm/ch-rpm-subpack.html) one can use subpackages to build multiple RPM packages with a single SPEC file. In the mentioned link the ...
5
votes
3answers
2k views

Why is this Mingw-w64 package so large?

Is it possible to install only x86_64-w64-mingw32-gcc? I need it for one command and the mingw-w64 installation is over 800MB... I'm in Debian Buster, but the same is true for other Linux flavors I ...
0
votes
1answer
22 views

How do I get around a transaction check error in an RPM that needs to overwrite a configuration file?

I'm packing something and the upstream provider clobbers a configuration file. Transaction check error: file /etc/acme-engine/acme-engine-fpm.conf from install of acme-1-74.1.el7.noarch conflicts ...
0
votes
1answer
50 views

How can I tell if a SRPM package will have components which will run as root?

Some packages install software which needs to run with root privileges, such as the sudo package. Others, such as vim, do not inherently need to run with root privileges. Is there a generic way to ...
-1
votes
1answer
60 views

How a software is assigned a designated port by the community?

This is a question on Unix software development. I have seen the following questions, which gave rise to my question: How to let kernel choose a port number in the range (1024,5000) in TCP socket ...
0
votes
0answers
37 views

In which directory should a node.js program be installed?

I'm contributing to an open source node.js project. The installation script for the project works by cloning the git repo to /home/ProjectName as root and running the node.js script from there. There ...
0
votes
1answer
347 views

How does pkg-config work in RPM specfiles?

In some RPM specfiles, I see lines like: BuildRequires: pkgconfig(ice) BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libssl) ... I am not very familiar with pkgconfig but I understand ...
3
votes
1answer
340 views

Is there any way to display the package contents using `apt-get` without first downloading the package? [duplicate]

I know I can list the files in a package using the following command, which first download the package (.deb) into /var/cache/apt/archives and then list its contents: apt-get --download-only install &...
0
votes
1answer
149 views

How is a source RPM different from unpacking an RPM with rpm2cpio and cpio?

I am attempting to understand the use of a .srpm aka "source rpm" Red Hat Package Manager package. From what I understand so far, a .srpm is different from a standard .rpm in that it provides the ...
1
vote
1answer
86 views

How are the pkgrel, extraver, snapinfo and minorbump fields of RPM's Release tag used?

The documentation for creating RPM packages in Fedora Linux states that There are potentially four fields which comprise the structured Release: tag: package release number (<pkgrel&...
1
vote
1answer
1k views

fpm: rpm: /usr/bin/rpmsign: No such file or directory

When I run fpm with --rpm-sign I get the following error, rpm: /usr/bin/rpmsign: No such file or directory I am using CentOS
1
vote
0answers
778 views

Openvpn-as : Depends: python-pyrad but it is not installable

I am using Parrot OS lastest version. I have tried and all the other variations of upgrade, such as the following, apt --fix-broken install I am getting the following error after running apt update &...
7
votes
1answer
411 views

Packaging binary release on OpenBSD

I have a tiny application written in go and I've cross-compiled it to various operating systems. Currently my Makefile generates myapp-VERSION-OS-CPUARCH.tar.gz packages to be used as a source ...
1
vote
2answers
55 views

Rpmlint "use-tmp-in-%postun" error

rpmlint output: E: use-tmp-in-%postun Spec file: %postun rm -r /var/aci /tmp/aci_tmp 2> /dev/null Also, I cant remove package How I can remove directory in /tmp after or before uninstalling ...
2
votes
1answer
144 views

dpkg command spontaneously killed on first run, works second time

I have a home made Debian package that installs two scripts files, two systemd services and a tar file. The handmade maintainer scripts are preinst, post inst, prerm and postrm. The problem I'm ...
0
votes
1answer
91 views

Where should I install template scripts? [closed]

If I have a program that copies and modifies scripts or code-files as part of its operation, where should these other "default" or "template" scripts be installed?

1
2 3 4 5
7