Skip to content

Commit 3f31e30

Browse files
authored
Merge pull request #34 from c1t4r/BuildDebFromSource
adding section on howto build DEB from sources
2 parents 915e4b4 + 4fab9ef commit 3f31e30

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

pages/docs/install/install-linux.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,21 @@ then you need to install dependencies:
9090
sudo apt-get install -y build-essential libtool autotools-dev automake autoconf
9191
```
9292

93+
## Build a DEB from source
94+
95+
To build a deb package for Debian/Ubuntu/LinuxMint invoke the following commands:
96+
97+
```bash
98+
$ fakeroot dpkg-buildpackage -b -us -uc # sudo will ask for a password to run the tests
99+
$ sudo dpkg -i ../singularity-container_2.2-1_amd64.deb
100+
```
101+
102+
Note that the tests will fail if singularity is not already installed on your system. This is the case when you run this procedure for the first time.
103+
In that case run the following sequence:
104+
105+
```bash
106+
$ echo "echo SKIPPING TESTS THEYRE BROKEN" > ./test.sh
107+
$ fakeroot dpkg-buildpackage -nc -b -us -uc # this will continue the previous build without an initial 'make clean'
108+
```
109+
93110
{% include links.html %}

0 commit comments

Comments
 (0)