Friday, May 10, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 12227  / 1 Year ago, sun, march 19, 2023, 8:18:30

I would like to know how to install .deb packages without using a package manager such as dpkg. Is it possible to do this? What files do I have to edit? Or is there a unique procedure for each package?


More From » package-management

 Answers
5

You can unpack a .deb package using



ar x your_package.deb


Every .deb package contains the two files control.tar.gz and data.tar.gz.



data.tar.gz contains all the program's files.



control.tar.gz contains the metadata and some scripts: preinst is run by dpkg before unpacking data.tar.gz, postinst after unpacking. When removing a packge prerm is run before the program files are removed and postrm after that.



Quite likely this scripts don't work on a Non-Debian system but they may contain code you need to run to make the program work.



Why do you want to do this?


[#39959] Monday, March 20, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aslity

Total Points: 336
Total Questions: 133
Total Answers: 98

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
aslity questions
Sat, Apr 22, 23, 23:22, 1 Year ago
Wed, Oct 27, 21, 06:19, 3 Years ago
Sun, Oct 3, 21, 05:33, 3 Years ago
Fri, Jul 1, 22, 17:16, 2 Years ago
;