Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

4
votes
1answer
46 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
26 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
58 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
14 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
32 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
24 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
32 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
21 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
39 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, ...
0
votes
0answers
19 views

Differentiated chart of Red Hat and Debian package names [duplicate]

I'm not sure why package maintainer would choose a different name for each distribution for their application. Our life would be much better if we have the flexibility to use the same package name ...
0
votes
0answers
69 views

rpmbuild gives File not found error when build an RPM from source

I am trying to build an RPM for this software collection: https://epics.anl.gov/download/base/base-3.15.5.tar.gz . When you extract the archive it may seems a normal source code, but it only requires ...
2
votes
2answers
41 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 ...
12
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. ...
6
votes
1answer
139 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 ...
0
votes
0answers
304 views

Error installing perl-doc: bug or poor usage?

I encountered the following error while trying to install perl-doc: $ su Password: # apt-get install perl-doc <snip> Get:1 http://ftp.br.debian.org/debian testing/main amd64 perl-doc all 5.26....
4
votes
1answer
206 views

Getting “Could not create local repository” error when building Debian package

I am trying to build a debian package against Debian stretch. The debian/rules file is this: #!/usr/bin/make -f %: dh $@ override_dh_auto_build: mvn clean package When I build it ...
0
votes
1answer
53 views

How do delta RPMs work at the server end?

Here's a question and answers on what delta RPMs actually are: What is DRPM and How does it differ from RPM? I'm interested in the algorithms and data structures server side. I've Googled but nothing ...
1
vote
2answers
219 views

What is the diffference between the prefix and destdir params for dh_auto_install?

I want to make my own debian package and I want to install it in /opt/A/B/C. When overwriting dh_auto_install the documentation shows that you can use params --destdir= and -- prefix=. If I want to ...
2
votes
2answers
50 views

Is there .sh installer (software archive is append to .sh flat text file) generating tools for unix?

There is a lot of software which is released as shell installers, for example: Netbeans Mathematica Bazel (it also provide deb and tar.gz, but .sh is popular) Nvidia Graphics Driver and so on. This ...
3
votes
3answers
150 views

.deb package: cannot upload to Bintray when package is build using Ubuntu 18.04

so I am trying to upload my package that I compiles and build on a machine running 18.04 to Bintray. It doesn't work. I get a message like this: Unable to upload files: Could not extract metadata ...
1
vote
1answer
336 views

How to temporarily disable and permanently disable repos in Debian based systems?

I know how to do it on Red Hat based systems. yum –disablerepo=* --enablerepo=epel update The above command will temporarily disable all repos and enable epel and update only epel packages. yum ...
0
votes
1answer
38 views

Different classes of Linux packages

I do know that there are 4 different classes of packages in Linux: Packages provided by the operating system Packages provided by third parties Self-made packages of third-party software Self-made ...
1
vote
1answer
390 views

How are RPM packages marked as “security” updates?

If I am applying yum install -y --security and a package is updated; how is the package "marked" as a security update? For example, lets say I have a package blah that I maintain, its current version ...
0
votes
0answers
178 views

Impossible to install deb after postinst script updated

I followed the instructions from here (Easily unpack DEB, edit postinst, and repack DEB) to update a bad deb archive (only commenting two lines). $ mkdir tmp $ dpkg-deb -R original.deb tmp # sudo vim ...
2
votes
2answers
636 views

Modify RPM package to remove dependencies

tl;dr: We build an RPM package that automatically detect dependencies (no Requires in .spec file). How can I remove dependencies from this RPM package. Long story:-> I'm shipping the dynamic ...
0
votes
1answer
36 views

Making Download & Install Style Programs for Linux

I am looking for a way to create download-and-install style programs for Linux. To clarity what I mean by "download & install", I mean that the installation process proceeds like this: User ...
1
vote
1answer
138 views

How can I see what is triggering a “transaction check vs depsolve” error?

I have inherited a software project which builds a set of RPMs to be installed on a RHEL server. When I attempt to install the packages on a server, I get a "transaction check vs depsolve" error ...
0
votes
1answer
1k views

Yum repository throwing - [Errno -1] Package does not match intended download

I am building a Yum repository to install RPM packages. I am creating a folder mkdir -p ~/yum/el7/x86_64 and moving rpm file to it under same path given above. Here is my my-app.repo file info. [my-...
3
votes
2answers
416 views

dh_install not finding files that clearly exist

Running debuild -us -uc to build a package I'm working on, dh_install complains about missing files. Running it on it's own, it prints the same error messages: $ dh_install /home/felix/work/my_app/...
3
votes
1answer
5k views

How to generate the `Release` file on a local package repository?

Context With local package repository, I refer to a set of software and configurations on a server which allows to store a software and any client to install this software by normal apt-get command (...
1
vote
1answer
200 views

Gentoo - how make binary packages from allready installed packages

I have some really old systems (like prehistoric in gentoo timescale) and I would like make binary packages there, but I do not have all the sources for normal compilation, as it was deleted from web ...
6
votes
5answers
2k views

Why do different Linux distributions need to patch packages?

I know that different distributions patch the packages that are available in the respective repositories but I've never understood why is there a need to do so. I would appreciate it if somebody could ...
1
vote
1answer
112 views

Was Debian the first distribution to distinguish upstream and packaging changelogs?

I like the way Debian gives various changelogs. For instance for most packages it has changelog.gz, the upstream changelog giving details of the differences between any two versions or at times even ...
3
votes
1answer
265 views

What does dh_usrlocal actually do

The dh_usrlocal manpage sounds a bit cryptic to me: It finds subdirectories of usr/local in the package build directory, and removes them, replacing them with maintainer script snippets (unless -...
1
vote
1answer
107 views

Defining multiple library dependencies

I am trying to install FreeRadius 3.0.16 in Debian 9 from my local repository. However when trying to install it I got this error: The following packages have unmet dependencies: freeradius : ...
1
vote
1answer
65 views

Compile with recent gcc on RedHat6: How to distribute the software?

My software compiles on a variety of OSes, including RHEL7. I have a request to build it to run on RHEL6. My problem is that my C++ code relies a lot on C++11 features that are not present in gcc-4.4, ...
-2
votes
1answer
103 views

how to find out what are the command of package? [closed]

i have package that install on my kali. I want to find out what is Api of this package (what is all the function that i can write from terminal that this package will answer to me) how can i get it ...
0
votes
1answer
115 views

Fail to build for Ubuntu

I try and build my package for Ubuntu but I can't understand the error. I get this debuild -S -sa dpkg-buildpackage -rfakeroot -d -us -uc -S -sa dpkg-buildpackage: source package opsh dpkg-...
0
votes
0answers
47 views

Installing a created .deb package

Following that question: Creating a .deb package for PHP 7.1 I have what seems to be a .deb package. Here is a pastebin with the return of dpkg-deb -c /var/cache/pbuilder/result/php_7.1.7-1_amd64....
1
vote
1answer
608 views

Creating a .deb package for PHP 7.1

I want to create a .deb package of PHP 7.1 for Debian with the PHP modules I want. Here the steps I have followed. Downloading PHP sources wget http://fr2.php.net/get/php-7.1.7.tar.bz2/from/this/...
3
votes
1answer
282 views

How to resume package building in debian?

I am running debian stretch and following this guide for building package from source for debian. Sometimes building process takes hours , when I run dpkg-buildpackage -rfakeroot again , it starts ...
0
votes
1answer
55 views

Should I include code to install the packages that my script requires?

I have a script built just a way to learn bash and it uses jq for json parsing suppose someone else downloads it and runs the file, will bash automatically prompt the user to install jq or should I ...
3
votes
1answer
698 views

Create, as a regular user, a tar with files owned by root

Hi guys/girls from U&L. CONTEXT I want to build a tar file as regular (non-root) user with some prepared binaries and configuration files like this; etc/binaries.conf usr/bin/binary1 usr/bin/...
0
votes
0answers
108 views

How to Check if Dependencies are Met Between RPM Packages?

Given a bunch of RPMs in a directory, how does one check whether there are no unmet dependencies among them, and, if there are, print a list of the missing ones? The solution should not assume ...
3
votes
2answers
835 views

Building debs for FreeRadius 3.0.15

After a security warning about FreeRadius, I am trying to build the FreeRadius 3.0.15 installation .deb files for Debian 9/Stretch for placing in my local repository. I actually also need that ...
1
vote
3answers
310 views

How can we predict when the next Debian release will be out?

Is there a way to predict when the next release will be out? I read somewhere that it has to do with number of bugs remaining in the testing branch. Could someone please explain how this works and ...
4
votes
1answer
10k views

What is ac_nonexistent.h?

Examining a buildlog from a failed build, what does the following error mean, fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h> Here is some context. ...
2
votes
1answer
4k views

How can I create a proper debian postinst and postrm script?

I have tried creating these scripts, the install goes well, however, once the application version is bumped and say I try to upgrade to apx v2.0 nothing goes well. This is my postinst script #!/bin/...
3
votes
0answers
86 views

How to package README.md in a Debian git source repository?

I'm trying to create a brand new Debian-ish package (mostly for private use but I'm thinking about publishing it on GitHub) based on a third-party program that doesn't currently have a Debian package. ...
3
votes
1answer
309 views

Package depends on mpich, cannot be installed because nothing provides libmpi.so.12

I have some software that uses MPI. I have created an RPM package from that. The requirements are such that mpich and mpich-devel are included: BuildRequires: libstdc++-devel autoconf gcc-c++ ...