LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > Spock's Brain
User Name
Password

Notices


Old

Extract package .deb to $temp/

Posted 08-23-2017 at 10:03 AM by Habitual (Spock's Brain)
Updated 08-23-2017 at 10:35 AM by Habitual

Target for this example is apache2, or "what were the defaults?"

Code:
mkdir -pv /path/to/temp/
dpkg-deb -x /var/cache/apt/archives/apache2_2.4.18-2ubuntu3.4_amd64.deb /path/to/temp/
Below /path/to/temp/ is
Code:
/path/to/temp/etc/
/path/to/temp/lib/
/path/to/temp/usr/
/path/to/temp/var/
remove all but etc, so
Code:
rm -fr /path/to/temp/{lib,usr,var}
and there they are!

Code:
/path/to/temp/etc/apache2/sites-available/000-default.conf
...
LQ Veteran
Posted in Uncategorized
Views 303 Comments 0 Habitual is offline

  



All times are GMT -5. The time now is 11:51 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration