0

I need to create a deb file with just set two other deb files as dependency so that both of them will install before this deb file.

If it is a package available in apt repo, I can directly mention as -d like I kept for nano and git below. But it is not supporting to set external deb files.

So, I kept in --before-install to a shell script. But getting below error.

preinst file:

echo "---pre Installing----"
wget https://github.com/uday1kiran/python_deb_create/raw/testdeb2/tmp/agentxw_1.036-1_amd64.deb
apt install -y ./agentxw_1.036-1_amd64.deb
wget https://github.com/uday1kiran/python_deb_create/raw/testdeb2/tmp/xvision_0.97-1_amd64.deb
apt install -y ./xvision_0.97-1_amd64.deb
echo "--pre install completed--"

And my command:

fpm -s empty -t deb -n test -v 1.3 -d git -d nano --after-install --before-install ./preinst

error with apt Please suggest how to set that external deb file as dependency. If not with fpm, any other tool that supports that.

user2331760
  • 155
  • 4
  • 12

0 Answers0