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
1
vote
1answer
18 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
11 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
30 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
23 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
32 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 ...
3
votes
2answers
178 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
37 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
19 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
22 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
50 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 ...
0
votes
1answer
50 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
28 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
65 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
34 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
23 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
37 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
1k 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
17 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
0answers
33 views

Cross compiling Debian packages to armhf with LLVM and GCC

For my research work, I need to compile different Debian packages for armhf (ARMv7) architecture using GCC and Clang i.e. I need the exact same package to compiled with the two compilers. I had been ...
0
votes
1answer
29 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
55 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
21 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
116 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
116 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
24 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
34 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
500 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
585 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
280 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
47 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
91 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
60 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?
2
votes
1answer
130 views

APT complains of broken/unmet dependencies for my package, but they are available in my repository. How to fix?

I manage an apt repository, for package PACKAGE, which has dependency (DEPENDENCY<<1.2). Both PACKAGE and DEPENDENCY are available in my repository. We just released a version of DEPENDENCY (...
0
votes
1answer
60 views

Setting file capabilities in deb package fails

So, there is my piece of software, that has to be distributed via deb-packages, it contains a small custom server. That server requires ability to listen on a priviledged port, because explaining to a ...
0
votes
1answer
341 views

How to start deb package after install automatically [duplicate]

I can install deb package via my repository as follow $ sudo apt install my_app then the package manager will fetch my_app and installed. But I have to start it manually. My aim is when I ...
1
vote
1answer
257 views

What is the mock template for centos-7?

I see on some sites they mention a centos-7 template that ships with mock, /etc/mock/centos-7-aarch64.cfg /etc/mock/centos-7-armhfp.cfg /etc/mock/centos-7-i386.cfg /etc/mock/centos-7-ppc64.cfg /etc/...
1
vote
1answer
32 views

When packaging an RPM, do I put my tests in SOURCES?

The RPM build directory tree is, $ tree ~/rpmbuild/ /home/user/rpmbuild/ |-- BUILD |-- RPMS |-- SOURCES |-- SPECS `-- SRPMS If I want to have a test that's not installed in the system but is used by ...
2
votes
1answer
581 views

Why dh_auto_install and dh_install are not using same directory?

I try to build a single package from source using dpkg-buildpackage. At some point dh_auto_install is invoked and run make install DESTDIR=/somewhere/debian/package-name Then dh_install is invoked ...
1
vote
1answer
40 views

Set minimal JRE version to deb package dependency

I want to bundle Java application into a .deb package. Inside it is a jar launched with a java -jar $path/app.jar script. I need to specify in the package dependencies that it will require JRE >= 11. ...
4
votes
1answer
67 views

In Debian, is there a list of packages with dead parent project?

I have been looking (in https://db.debian.org/machines.cgi) for a service or list of Debian packages without upstream (parent project). Because I think there are a lot of deb packages which are alive ...
1
vote
1answer
84 views

Creating a Debian package with correct uninstaller

I created a Debian package installer with a control file and desktop file, for a piece of software with no dependencies. It installs the software as expected, however the software does not seem to be ...
1
vote
1answer
110 views

ModuleNotFoundError: No module named 'ntp.ntpc'

I'm building package ntpsec-1.1.3+dfsg1 in buster but failed when compiling. The error is: ModuleNotFoundError: No module named 'ntp.ntpc' I saw that there are some .py files in the package need ntp....
1
vote
0answers
101 views

How does YUM decide which package is the best install candidate for a dependency when there are several options?

I have a package that I need to be compatible with openjdk 11 and oracle java 11. I'm trying to create a metapackage that can depend on openjdk java 11 or oracle java 11: My openjdk metapackage spec ...
3
votes
1answer
476 views

Dpkg dh_install: copy files from the build directory rather than the debian/tmp dir?

Suppose I have a debian package housing as follows: project_pkg/ .git project_0.0-1/ debian/ install ... project (git submodule with tagged commit) With the following ...
2
votes
1answer
560 views

Dpkg Debuild dh_helper: How to symlink binaries installed in /opt/package to /usr/local/bin?

I am packaging my first debian project, and I have things 100% worked out with gnu-make (anything is possible here, for me, and so my difficulties right now are exclusively in navigating the dpkg/...
0
votes
1answer
50 views

How do I know an open-sourced app is running the open source code it claims to be running? [duplicate]

You can argue that you can check the checksum of the application's package, but you are then trusting the developer to have compiled the right code and provided the right signature. Is there a way to ...
4
votes
0answers
131 views

Is it possible to create an RPM package from an install script?

I'd like to easily create RPM packages for some random projects that do not come bundled as RPM (or whose RPMs are severely outdated). Take the Pop OS GTK theme as an example. Installing the theme ...
1
vote
3answers
62 views

Why is the procedure for building RPMs so isolated?

I'm learning how to create RPMs for my own packages. Normally I can do everything while logged into my own account but instructions on making RPMs always seem to want you to use some other account. ...
1
vote
1answer
43 views

Producing 'installers' on Linux [closed]

can you help me with best practices or things that i should keep in mind while we produce an 'installer' for my software (Java based)? what are the steps or phases in which this should be done? I ...
1
vote
1answer
285 views

How to get list packages installed in debian instance as an offline install for another machine

I have put together a debian instance with apt as the package manager that has many packages installed. I would like to install these same packages on another system that does not have an internet ...

1
2 3 4 5 6