Stack Exchange Network

Stack Exchange network consists of 175 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

0
votes
0answers
10 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 ...
-2
votes
0answers
28 views

Is there a way to replace a file in /usr/local/bin without sudo access?

I'm creating an installation package that puts an bin file in /usr/local/bin (my choice, I could change that). The goal is to have the bin file in $PATH and executable by a standard user. Another ...
2
votes
1answer
101 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
56 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
52 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
25 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
26 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
45 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
38 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?
0
votes
1answer
15 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
125 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
53 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
71 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
79 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
31 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
67 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
15 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
74 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
39 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
36 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
30 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
69 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
77 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. ...
7
votes
1answer
333 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
364 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....
5
votes
1answer
355 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
80 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 ...
2
votes
2answers
453 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
55 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
190 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 ...
2
votes
1answer
742 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
550 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 ...
2
votes
2answers
971 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
39 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
210 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
2k 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
649 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
7k 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 (...
2
votes
1answer
287 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
116 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
323 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 -...
0
votes
1answer
117 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
74 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
118 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
137 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
53 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
716 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/...