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]

refers to the creation and maintenance of Debian or snap packages. Whether you are looking to update a package for your personal use or wondering how to get your software into the hands of Ubuntu users, this tag is for you.

0
votes
0answers
8 views

How to Create Multiple Binaries for Apache from source

I am using Ubuntu/Xenial and I need to create Apache2_2.4.34 packages from source. I use instructions from here. Resulting package is only one package "apache2_2.4.34-1_amd64.deb", because dh-make ...
0
votes
0answers
20 views

How are Qt modules/classes distributed amongst Ubuntu packages?

For example, I know that I need the core dependency or the network one. In other words I have the following lines in qbs project file Depends { name: "Qt.core" } Depends { name: "Qt.network" } Now, ...
12
votes
1answer
323 views

What's the difference between the different “rename” commands?

Since Ubuntu 14.04 there are at least three rename commands: rename provided by the util-linux package, see man rename.ul rename provided by the perl package, see man prename rename provided by the ...
0
votes
0answers
7 views

Create Multiarch package with prebuild binaries

Hi I am currently trying to create a package with prebuild binaries as for the source I have a binaries directory with a 32 and 64 subdirectory. I would like to install the 64bit binaries on a 64bit ...
0
votes
0answers
38 views

Unable to install a package from the postinst of another package [duplicate]

I have Ubuntu 14.04. I have 2 deb packages, deb1 and deb2 I'm trying to install deb2 in the postinst of deb1 using dpkg -i deb2 but I get this error: dpkg: error: dpkg status database is locked by ...
8
votes
1answer
9k views

How to create a .deb file with dependency?

I have a game made with the LÖVE framework and I want to package it into a .deb file so it can be easily installed by others and be easily findable through the Unity dash for example. I also have ...
11
votes
3answers
19k views

How do I install a package with aptitude?

I've looked at an aptitude tutorial and read the man page, but I just don't get it. After you launch aptitude, how do you say "install package foo"? Or search for all packages with "foo" in their ...
0
votes
0answers
14 views

Installing shortcuts as a package

I want to improve user experience on Linux, and one of the things that I have in mind is packaging keyboard shortcuts and tracking their usage. The benefits that I see from that: Know which package ...
0
votes
0answers
10 views

Software package wit its own dynamic library - where to install?

I have written a piece of software (a .deb package) which ships with a dynamic library (foo.so) which is only usable to my softare. Where should I place the library and how can I load it? I don't ...
0
votes
0answers
7 views

Packaging my Flask app using snapcraft

I am new to snapcraft, pls bear me.... I have my web application developed using Flask and opencv 3.0 technologies. We need to deploy this application in the client environment without revealing ...
0
votes
0answers
23 views

How to package for multiple Ubuntu versions with different package dependencies in a single PPA from launchpad? [duplicate]

I have an existing PPA for a Qt-based application that dates back to xenial that I recently updated to support bionic. I did this by just checking in all the changes required for bionic (in ...
0
votes
0answers
25 views

Can't build PPA, flake8 fails

When building my package I get this error. make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_test make -j1 check make[1]: Entering directory flake8 libinput-gestures ...
0
votes
0answers
29 views

Create snap of .deb plus ppa dependencies?

I have a proprietary program that runs on 16.04 with an additional ppa for qt5.6. It is the only app that holds me back from updating to 18.04, so my idea was to create a snap package including the ....
1
vote
0answers
26 views

How do I create a symlink from my app bin to /usr/bin?

So I have a deb package built using electron-installer-debian. When I sudo dpkg -i app.deb, it's unpacked in /usr/lib/myapp/myappbin and there's no symbolic link created. How do make it so the ...
15
votes
3answers
8k views

How to run parallel make with debuild?

I am trying to make a package of a piece of software that I've (co-) written. I'm using debuild -i -us -uc -b And in principle that works fine. In order to shorten compilation time I'd like to ...
2
votes
1answer
106 views

snapcraft build issue: GLIBC wrong version

Rebuilding package with new version after successfully build it last week this week I am having issues: The GLIBC version of the targeted core is 2.23. A newer libc will be required for the following ...
0
votes
1answer
121 views

How to add a shell script as a command offered by a Snap?

Say I have a basic shell script foo.sh: #!/bin/sh while [ 1 ] do echo "looping" sleep 1 done And I want to have this offered up as a command: /snap/bin/myapp.foo I have the snapcraft.yaml: ...
1
vote
0answers
29 views

How to create an Ubuntu distro from VirtualBox Ubuntu Image? [duplicate]

I have an UbuntuServer installed and filled with packages that I need, and it's ready for work. Can I make a distro from VirtualBox image of UbuntuServer in to .iso installable file with all the ...
1
vote
1answer
396 views

How to create a deb package when upstream developer has not a release a tarball

I want to create a deb package of https://github.com/manojgudi/sandhi. But I cannot find any tarball there. All the tutorials that I came across on the net assume that there is an upstream tarball ...
0
votes
1answer
81 views

Debian packaging of python library with extra files

Is there a minimal modification I can do to a Python 3 Debian package source in order to install additional folders under the dist-utils/my-package folder like unit tests? I am using pybuild which ...
161
votes
5answers
202k views

What is an “AppImage”? How do I install it?

I just read Meet Etcher, A Stylish Open-Source USB Image Writer Tool. It talks about downloading an AppImage. Yes, Linux; the Linux packages is distributed as an .appimage for 32-bit and 64-bit ...
12
votes
1answer
3k views

What is the meaning of the XubuntuY string in Ubuntu package names?

Each package name is in the form: package-XubuntuY*_amd64(i386) So my questions are: What does the X stand for? What does the Y stand for? for example binutils_2.22-6ubuntu1.3_amd64 What is the ...
24
votes
2answers
3k views

Why do some packages have extra numbers before a colon on the front of their version string?

I have just noticed that Wine (and a number of other packages) have shifted their versioning scheme to something like: 1:1.6.2-0ubuntu3 I understand everything after the 1:... But what does the 1: ...
2
votes
2answers
260 views

Install non-executable files with dh_install

I have some debian package which has the following install file: src/an_executable_python_script usr/bin src/web/* usr/share/packagename inside the src/web folder are some html and css files. It ...
0
votes
1answer
262 views

Build linux kernel 4.15.0-22 scripts/Makefile.clean [closed]

I want to compile linux-source-4.15.0-22 on xenial(16.04-4). When i use the following command I have received an error. make clean distclean && make mrproper && make-kpkg clean cp /...
11
votes
2answers
489 views

Why do snap-packages exist - is there a real need?

Assumptions Honestly, I do not know much about snap-packages - but this is irrelevant for this question - see below. I assume the system is significantly different from the existing one. Does the ...
0
votes
0answers
43 views

How to make a snap package from a python project without setup.py?

Suppose, there is only one program.py, or 2. there are a few files and an init.py executes the program. How to turn it into a snap package? This guide assumes there is a setup.py.
0
votes
1answer
151 views

Does Snap package supports private repository?

https://docs.snapcraft.io/build-snaps/ci-integration As documented here i am a game developer and have created a game on Unreal Engine and i have put my game package on git in a private repository ...
2
votes
0answers
108 views

How to create *-dev package from source?

I want to install SILE Typesetter which depends on HarfBuzz (libharfbuzz-dev). The libharfbuzz-dev available from repositories is version 1.0.1 (released 2015), while the latest version available from ...
0
votes
0answers
25 views

Why is the version of Mono in the Ubuntu repositories so old? [duplicate]

I am having an issue with a mono application I use failing to auto-update from github due to github retiring support for now outdated security protocols (TLS v1.0/1.1). Since the versions of mono ...
14
votes
5answers
18k views

How to run a script only during first install of a package and during upgrades?

I recently started packaging up some of my software and publishing it on Launchpad. The installation and removal works fine, but upgrading the package form one version to the next version is ...
8
votes
1answer
20k views

Where is the downloaded package files directory?

Where can I find the location of downloaded .deb files? I want to copy this folder before I reinstall Ubuntu so I don't have to redownload the packages. I am running Ubuntu 12.10 32-bit. How can I ...
1
vote
1answer
61 views

Automation of installing programs from source

I occasionally face a problem when using programs for which developers don't publish deb packages and only provide source. Sometimes I find a PPA providing the package but sometimes I don't or ...
1
vote
1answer
91 views

How can I apply the packaging for libvirt to build a package out of a git version?

I've been trying to work on a patch to libvirt to enable Ceph/RBD storage volumes. I would like to test my code now. I would like to do this as a package (or even a Launchpad PPA), so that I can ...
3
votes
1answer
55 views

Guidelines for packaging web app

For a while now, I'm trying to build an Ubuntu package for PPA upload, and facing all sort of issues understanding bzr dh-make and such. The package is web application (php-based). Most packaging ...
2
votes
1answer
134 views

How to create a .tar.gz file to install a custom application

I have written a simple program, and I made a .deb file to install it on Debian based OSs. but for other distros like Arch, I usually use a .tar.gz file (and doing :./configure, make and make install),...
3
votes
2answers
57 views

Whats the simplest way to make source and binary package when you are the original author?

The Debian packaging guides, which I have read so far, assume that the packager is not the maintainer, and so needs to have original tarballs, patches, etc. If I have an app which builds with "make" (...
1
vote
0answers
300 views

Creating multiple deb packages using CPack

I have a project with several components and I am creating 4 DEB packages using CPack version 2.8.12. I have no issues with package generation as well as installation but these: I am unable to make ...
0
votes
0answers
55 views

Is there any way to remove a program that has been installed with a .tar.gz file? [duplicate]

Is there any way to remove a program and all of its executable files and docs that have installed from a .tar.gz file (for example on an Arch Linux) by : ./configure make make install Answer : I ...
10
votes
3answers
6k views

How do I add a binary file to my existing PPA package

Adding modified or new text files to my PPA package is simple enough: Step 1: apt-get source [foo-package] cd [foo-package] Step 2: add or modify new text files containing the changes Step 3 - ...
7
votes
1answer
501 views

How do I cache packages for a snapcraft cleanbuild?

snapcraft cleanbuild is supposed to let me build snaps in clean-room environments. Accordingly it starts from a minimal LXD image and installs necessary packages. However, it seems to use the base ...
3
votes
3answers
2k views

Where are .deb package control files located?

My understanding is that debian based packages have "control files" which specify metadata on how the packages is to be installed, e.g. what dependencies it has etc. How can I view these files for ...
2
votes
1answer
103 views

Why does postrm run twice on purge?

I've created a package that has a postrm script which removes a user. When running sudo apt-get remove ..., the postrm script behaves as expected: vagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get -y ...
15
votes
2answers
243 views

Is it possible to get a patch included in the current release? If so, how?

So a while back I reported a bug in Compiz's Place Window plugin. It's a fairly major regression for people affected by it: mainly those using Gnome-Fallback, judging by the reports. A patch ...
2
votes
1answer
69 views

What makes Checkinstall packages not suitable for distribution?

I am planning to have multiple servers running with the same packages. And as a solution to not compile packages individually on each server, I want to use checkinstall to generate .deb and then ...
1
vote
3answers
1k views

Creating debian package to install to a path with spaces

I have a Qt application that I want to deploy as a deb package. I have been reading so many sources, all slightly different - most of what I did follows this How To: preparing an application for ...
1
vote
0answers
180 views

How to create a deb file which installs Valve's OpenVR Package on Ubuntu?

Ultimate Goal: Add ValveSoftware/OpenVR to a PPA so that it can be installed via $ sudo apt-get install openvr I'm assuming this means I need to create something like an OpenVR.deb. Attempt: I have ...
0
votes
1answer
41 views

Electron Snap file is not build after running command

https://gist.github.com/popey/7803cfbda9b337fab792c403e50e4709 Im following this tutorial. After running npm run dist terminal outputs missing script: dist After running npm run lint since it is ...
2
votes
1answer
125 views

DEB and RPM packaging

I have an application that I'd like to pack into DEB and RPM for making it installable into Linux distributions such as: Debian Ubuntu Linux Mint Fedora OpenSUSE Do I need to develop an extra DEB ...
1
vote
2answers
121 views

Can apt actions delete/modify files inside exiting user home?

I somehow always assumed that when I run a command like apt-get install, remove, purge then at most apt might add configuration dot-files files to my existing local home (not even sure about that), ...