A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
7
votes
1answer
121 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
31 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
0answers
42 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
28 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
39 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
20 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
18 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
43 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
29 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
67 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
30 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
62 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
34 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
62 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
20 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
43 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
72 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
149 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
26 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 ...
3
votes
0answers
46 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
55 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
67 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
40 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
105 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
245 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
30 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
225 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
251 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
168 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
50 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 ...
0
votes
0answers
114 views

Creating .deb from github repository

Currently, to build the github repo, it requires making a python environment with specified dependencies, with gcc and g++ installed. The project is written in python and cython. I want to make a .deb ...
-1
votes
1answer
221 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
124 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
39 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
346 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....
2
votes
1answer
187 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 ...
0
votes
1answer
120 views

Why RPM doesn't accept my shared object as dependency?

I've built a rpm package using rpmbuild, and the package has the following dependencies: 51f32ecb00b7:/rpm # rpm -qpR pkg.rpm libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(...
5
votes
1answer
279 views

creating a .deb package and autorun it

I'm using a Raspberry Pi 2 Model B running the latest Raspbian Stretch Lite 2018-11-13. I built a program that communicates with a LoRa chip (SX1276) using SPI, gets some data from a temperature ...
1
vote
1answer
148 views

How to create a .deb package using the source code which would compile and install automatically when .deb is installed in different system

I have the source code and need to crate a .deb package. When it is installed.., it shld compile the source code and install the resulting binaries when the deb package is installed. I know creating ...
0
votes
0answers
86 views

How to package a Bash program for installation in Linux

I have a program written completely in Bash, which includes the main script, a set of modules called by the main script, a config file, a lib file, etc. Since nothing needs to be compiled, what's the ...
1
vote
1answer
18 views

How are upstream changelogs pulled and shared in Debian?

I know that in Debian you have a watch file which diffs the pristine version of a package with a release upstream (using regexp) and telling if there is a new package release. How are changelogs done. ...
0
votes
1answer
1k views

How can I upgrade my deb package

I have qt project and deb package that is built using following command: dpkg-buildpackage -us -uc After this action, my package is ready to install. But if I have my package installed and I want ...
2
votes
1answer
67 views

Debian conffiles alternative

I maintain a native Debian package which installs an application and an initial SQLite database. I expect the application to edit the database. How do I prevent upgrades from replacing the database? ...
1
vote
0answers
50 views

dpkg: Upgrading depending packages (with the depended on possibly failing)

I have two packages A and B where B is an optional component that depends on package A and its exact version. Therefore I need to enure that if both packages are installed they are of the same version....
1
vote
1answer
78 views

How to print message to the user on package installation?

I want to notify user about important details when package is installed. I've looked at https://www.debian.org/doc/debian-policy/ch-controlfields.html#list-of-fields but don't see anything fit for ...
2
votes
1answer
139 views

Python module RPM package Requires section

I am trying to build an RPM package for some Python module (actually its graph-tool: https://git.skewed.de/count0/graph-tool/) The question is: what do I have to put to the Requires section? If I, ...
2
votes
2answers
120 views

gbp import-orig “revision not found” error

I am trying to rebuild a Debian package using new upstream sources. I first do a gbp import-dsc on the Debian source package: % gbp import-dsc heimdal_7.1.0+dfsg-13+deb9u2.dsc gbp import-dsc ...
13
votes
2answers
1k views

Is it safe to rename .deb file named by the standards?

The established structure of the .deb file name is package_version_architecture.deb. According to this paragraph: Some packages don't follow the name structure package_version_architecture.deb. ...
7
votes
1answer
872 views

What is the proper way to set SELinux context in an RPM .spec? (RHEL7 in 2018)

The RHEL7 supplied tomcat package supports multiple instances through the creation of directories and symlinks. Once such a multiple instance is created and packaged as an RPM, the extra instances ...