Extracting files from rpm and deb packages
Mar 25, 2022

Extracting files from rpm and deb packages

We ran into an issue where an init script was missing and we needed to restore the file. The backup (of course) did not include the file we needed. We had to download the package, extract the contents, and move the init script back into place. Below are the commands used:DEB:$ dpkg-deb -x <package.deb> /restore/dirRPM:$ rpm2cpio <package.rpm> | cpio -idv

Related posts

Browse more
We haven't published any posts