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
0answers
7 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
17 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
16 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
17 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
26 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
52 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
18 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
32 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
104 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
20 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
18 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&...
0
votes
1answer
277 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
477 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
232 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
45 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
61 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
44 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
109 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
42 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
166 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
151 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
31 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 ...
1
vote
1answer
372 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
34 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
65 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
51 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
90 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....
0
votes
0answers
25 views

Swpackage doesn't set the state of a fileset

I'm trying to package a simple hello-world with swpackage (GNU swbis) and installing it with swinstall (HP-UX). I have created a simple PSF copying from swpackage manpage. distribution product ...
1
vote
0answers
86 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 ...
2
votes
1answer
310 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
396 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
30 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
84 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
60 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
150 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 ...
2
votes
1answer
42 views

Way to have a Debian package reinstall when dependency updates?

For a little something I made (that used to be a word-of-mouth thing only and that's interesting to just a very narrow, and usually non-technical, user base), I'd like to be able to provide a .deb ...
1
vote
1answer
267 views

Debian package with optional files

Scripts to create debian package exist and work. I have to modify them. In new specific case there may be some optional files which I want to include to package. If I add them to package.install, ...
1
vote
1answer
588 views

Packaging CMake components for Debian

I have a single upstream source package using cmake and I'd like to package it as two binary debian packages. $ tree proj proj/ ├── app1.c ├── app2.c └── CMakeLists.txt Upstream's CMakeLists.txt was ...
0
votes
0answers
61 views

How to create RPM for generic Perl module

I have a generic Perl module that will run on any release of Perl 5. I need to create an RPM for it that will install it into the vendor_perl subdirectory. I don't want to create different RPMs for ...
3
votes
1answer
371 views

How to depend on java 11 so it can be satisfied by openjdk or by Oracle java 11 packages?

I'm trying to create an rpm package with a dependency on java 11; however, it seems like the openjdk and Oracle java 11 packages don't provide any overlapping java virtual packages. OpenJDK Java 11 ...
0
votes
2answers
459 views

NixOS - how is environment.systemPackages implemented

I've started using NixOS. As far as I understand Nix is a purpose built functional language to avoid side-effects. All packages are part of a giant attribute set but as everything is lazily evaluated ...
2
votes
0answers
325 views

Is there a way to package npm dependencies into a .deb package for offline deployment?

I've created a very simple debian .deb package that deploys my node-red project to the correct directory structure on a target machine. I also have a number of python/debian dependencies, which I've ...
0
votes
1answer
59 views

How to compile Neofetch (from git) in arch Linux?

I know the latest Neofetch is available in the official arch repository but I want to build it from the git clone. Since it doesn't have the PKGBUILD so makepkg is out of question and the global step ...
-1
votes
1answer
304 views

Converting .rpm to .deb using alien

I am trying to convert .rpm to .deb using alien command: sudo alien <name of package>.rpm But it's just create a directory that has the same name but never get .deb to install it There is no ...
2
votes
1answer
151 views

How to create upstream tarball from Git repository of Debian package

I have a Git repository with these branches: debian master pristine-tar upstream I do not have an upstream tar ball. Can I create an upstream tarball from the Git repository I have? If so, how?
1
vote
1answer
68 views

How to build Postfix from Debian Salsa Git? (gbp:error: upstream/3.3.2 is not a valid treeish)

I would like to rebuild the Debian package 'postfix'. Without anything fancy, so no local patches and unsigned packages are fine. Here's what I tried: Install some dependencies: $ apt install ...
1
vote
1answer
556 views

CentOS 7 - problem encountered with the set up of spec file during creation of RPM package

I'm aiming to translate a Debian package to an RPM package to install it on a CentOS Linux 7 (Red Hat). I used alien to accomplish it: alien --to-rpm --scripts --keep-version --generate debian_pkg.deb....
1
vote
1answer
441 views

Build OpenSSH client only

I'm trying to build OpenSSH 7.9p1 from source, but I can't find a way to delete (or not include), for instance, ssh-agent, ssh-keygen, scp, sftp, sshd, etc. – of course, assuming none of those are ...

1
2 3 4 5 6