Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch from dpkg -x to ar x && tar -xvf #85

Closed
yarikoptic opened this issue Aug 30, 2021 · 0 comments · Fixed by #86
Closed

switch from dpkg -x to ar x && tar -xvf #85

yarikoptic opened this issue Aug 30, 2021 · 0 comments · Fixed by #86
Assignees

Comments

@yarikoptic
Copy link
Member

installing a standalone build is useful for

it is possible to extract without using dpkg and just using ar and tar which should be available on any of target systems (whenever dpkg - only on Debians):

(datalad) [d31548v@discovery7 8.20210803+git153-g63c2cfd47-1]$ ar x /dartfs-hpc/rc/home/v/d31548v/proj/datalad/ci/git-annex/builds/2021/08/cron-20210830/build-ubuntu.yaml-397-69466103-success/git-annex-debianstandalone-packages_8.20210803+git153-g63c2cfd47_amd64/git-annex-standalone_8.20210803+git153-g63c2cfd47-1~ndall+1_amd64.deb
(datalad) [d31548v@discovery7 8.20210803+git153-g63c2cfd47-1]$ ls
control.tar.gz  data.tar.gz  debian-binary
(datalad) [d31548v@discovery7 8.20210803+git153-g63c2cfd47-1]$ tar -xzf data.tar.gz 
(datalad) [d31548v@discovery7 8.20210803+git153-g63c2cfd47-1]$ ls
control.tar.gz  data.tar.gz  debian-binary  etc  usr

so I guess ar x should first extract into a tempdir and then tar could extract data.tar.gz into the target install-dir path, and then tempdir be cleaned up.

yarikoptic added a commit that referenced this issue Aug 31, 2021
Use `ar` & `tar` instead of `dpkg -x`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants