How to make Debian package install dependencies?

前端 未结 5 899
离开以前
离开以前 2021-02-02 14:03

I want to make a simple Debian package to install a simple tool that depends on Qt4 libs.

In control file I have defined that it depends on Qt4 libs however, by the time

5条回答
  •  悲&欢浪女
    2021-02-02 14:37

    If you install it via dpkg it won't work because dkpg doesn't know where to find additional dependencies. You could do it via apt-get if you build your own repo, but it's kind of time-consuming the first time (it's not difficult, just something "new" the first time that needs some time to be learnt).

    On the other hand, and the solution you are probably looking for is gdebi (you may need to install it: apt-get install gdebi-core). It's a tool that checks the dependencies for a package and calls apt-get to fetch and install them, and then calls dpkg to install your package.

提交回复
热议问题