Peter Penzov
Peter Penzov

Reputation: 1682

Remove tar_1.34+dfsg-1.2+deb12u1_amd64.deb

I have to remove tis package tar_1.34+dfsg-1.2+deb12u1_amd64.deb into Docker. But when I run: RUN dpkg -r tar_1.34+dfsg-1.2+deb12u1_amd64.deb

I get error:

ERROR: failed to solve: process "/bin/bash -o errexit -o nounset -o pipefail -c dpkg -r tar_1.34+dfsg-1.2+deb12u1_amd64.deb" did not complete successfully: exit code: 2

Do you know what is the proper way to remove this package in Docker?

Upvotes: -1

Views: 16

Answers (1)

OverSamu
OverSamu

Reputation: 164

You should indicate the name of the package you want to remove: RUN dpkg -r tar.
However, it is not certain that this will remove the same version of the deb file.

Upvotes: -1

Related Questions