Identify Ubuntu/Debian package that a binary belongs to based on its md5sum

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite
1












Is it possible to identify the Debian package that a binary belongs to based on its md5sum.



All Debian packages contain a md5sums file that list all the files and their corresponding md5sum.
So, I am wondering, giveν an md5sum of a binary or any file, whether it is possible to get the package info that it belongs to.



Debian already provides an API to search for source packages based on sha256sum of any source file it contains.



In my case, if I have a binary, say libxml2.so.2.9.4, I want to know its origin package by simply searching for its md5sum.







share|improve this question





















  • Why not use dpkg -S libxml2.so.2.9.4? That will give you the package name, dpkg -L <packagename> will list all the files in that package.
    – waltinator
    Jun 3 at 15:58










  • Problem is, these binaries are not obtained from installed packages. I am reversing some firmware and I want to know their origin. All I know is the firemware that I am reversing is using Debian distro. So, I am trying to identify the packages installed in the firmware
    – Maggie
    Jun 3 at 18:03















up vote
1
down vote

favorite
1












Is it possible to identify the Debian package that a binary belongs to based on its md5sum.



All Debian packages contain a md5sums file that list all the files and their corresponding md5sum.
So, I am wondering, giveν an md5sum of a binary or any file, whether it is possible to get the package info that it belongs to.



Debian already provides an API to search for source packages based on sha256sum of any source file it contains.



In my case, if I have a binary, say libxml2.so.2.9.4, I want to know its origin package by simply searching for its md5sum.







share|improve this question





















  • Why not use dpkg -S libxml2.so.2.9.4? That will give you the package name, dpkg -L <packagename> will list all the files in that package.
    – waltinator
    Jun 3 at 15:58










  • Problem is, these binaries are not obtained from installed packages. I am reversing some firmware and I want to know their origin. All I know is the firemware that I am reversing is using Debian distro. So, I am trying to identify the packages installed in the firmware
    – Maggie
    Jun 3 at 18:03













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





Is it possible to identify the Debian package that a binary belongs to based on its md5sum.



All Debian packages contain a md5sums file that list all the files and their corresponding md5sum.
So, I am wondering, giveν an md5sum of a binary or any file, whether it is possible to get the package info that it belongs to.



Debian already provides an API to search for source packages based on sha256sum of any source file it contains.



In my case, if I have a binary, say libxml2.so.2.9.4, I want to know its origin package by simply searching for its md5sum.







share|improve this question













Is it possible to identify the Debian package that a binary belongs to based on its md5sum.



All Debian packages contain a md5sums file that list all the files and their corresponding md5sum.
So, I am wondering, giveν an md5sum of a binary or any file, whether it is possible to get the package info that it belongs to.



Debian already provides an API to search for source packages based on sha256sum of any source file it contains.



In my case, if I have a binary, say libxml2.so.2.9.4, I want to know its origin package by simply searching for its md5sum.









share|improve this question












share|improve this question




share|improve this question








edited Jun 3 at 11:02









Bruni

4,63231949




4,63231949









asked Jun 3 at 10:42









Maggie

1063




1063











  • Why not use dpkg -S libxml2.so.2.9.4? That will give you the package name, dpkg -L <packagename> will list all the files in that package.
    – waltinator
    Jun 3 at 15:58










  • Problem is, these binaries are not obtained from installed packages. I am reversing some firmware and I want to know their origin. All I know is the firemware that I am reversing is using Debian distro. So, I am trying to identify the packages installed in the firmware
    – Maggie
    Jun 3 at 18:03

















  • Why not use dpkg -S libxml2.so.2.9.4? That will give you the package name, dpkg -L <packagename> will list all the files in that package.
    – waltinator
    Jun 3 at 15:58










  • Problem is, these binaries are not obtained from installed packages. I am reversing some firmware and I want to know their origin. All I know is the firemware that I am reversing is using Debian distro. So, I am trying to identify the packages installed in the firmware
    – Maggie
    Jun 3 at 18:03
















Why not use dpkg -S libxml2.so.2.9.4? That will give you the package name, dpkg -L <packagename> will list all the files in that package.
– waltinator
Jun 3 at 15:58




Why not use dpkg -S libxml2.so.2.9.4? That will give you the package name, dpkg -L <packagename> will list all the files in that package.
– waltinator
Jun 3 at 15:58












Problem is, these binaries are not obtained from installed packages. I am reversing some firmware and I want to know their origin. All I know is the firemware that I am reversing is using Debian distro. So, I am trying to identify the packages installed in the firmware
– Maggie
Jun 3 at 18:03





Problem is, these binaries are not obtained from installed packages. I am reversing some firmware and I want to know their origin. All I know is the firemware that I am reversing is using Debian distro. So, I am trying to identify the packages installed in the firmware
– Maggie
Jun 3 at 18:03
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043166%2fidentify-ubuntu-debian-package-that-a-binary-belongs-to-based-on-its-md5sum%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043166%2fidentify-ubuntu-debian-package-that-a-binary-belongs-to-based-on-its-md5sum%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?