How to Remove all packages which is installed by dpkg from debs

Pandya

I used to install packages by dpkg -i *.deb as I have all deb (with dependencies) in one folder.

Now Is there any Reverse process of dpkg -i *.deb to remove all packages installed from debs.

(dpkg -r <pkgname>is not helpful because it requires package-name instead of deb file and not accept *.deb)

Oli

dpkg can extract the package name (with a bit of help). The only serious problem here is just chaining them together and that's where find steps in.

find -iname '*.deb' -exec dpkg --info '{}' \; | awk '/Package:/ {print $2}' | xargs -r -- sudo apt-get remove

That isn't tested but it should work.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to Remove all packages which is installed by dpkg from debs

From Dev

Remove all packages installed from a PPA?

From Dev

Remove all packages installed from a PPA?

From Dev

How to remove packages listed by dpkg

From Dev

How to remove packages listed by dpkg

From Dev

How to remove installed packages

From Dev

How to remove installed packages

From Dev

How can I check which is the installed version of a package if with dpkg -l it says is installed in all architectures?

From Dev

How do you remove MacPorts and all the packages it has installed?

From Dev

How to remove all packages installed because of KDE on Ubuntu 19.10

From Dev

How to remove kernel installed using dpkg command?

From Dev

How to remove packages not installed with Composer?

From Dev

List all packages which are loaded/defined (not installed)

From Dev

How to remove all packages with DNF on which no other package depends on

From Dev

How to list all installed packages

From Dev

How to list all installed packages

From Dev

debian: remove all packages installed on a specific day

From Dev

Remove completely all packages I installed?

From Dev

How to get installed/not installed state of **all** packages?

From Dev

How to tell which packages will be installed by snap

From Dev

how can i list all packages which ere installed by me in centos without dependencies

From Dev

Retrieve all installed packages and their versions from nodes

From Dev

How to remove a lot of packages installed at a particular time?

From Dev

How to uninstall or remove recently-installed packages

From Dev

How can one remove all packages installed after a certain date/time?

From Dev

How do you completely remove ubuntu-desktop along with all installed packages with it?

From Dev

How can one remove all packages installed after a certain date/time?

From Dev

how to remove all installed dependent packages while removing a package in centos 7?

From Dev

Meteor.JS: How to Remove All Packages from a Project

Related Related

  1. 1

    How to Remove all packages which is installed by dpkg from debs

  2. 2

    Remove all packages installed from a PPA?

  3. 3

    Remove all packages installed from a PPA?

  4. 4

    How to remove packages listed by dpkg

  5. 5

    How to remove packages listed by dpkg

  6. 6

    How to remove installed packages

  7. 7

    How to remove installed packages

  8. 8

    How can I check which is the installed version of a package if with dpkg -l it says is installed in all architectures?

  9. 9

    How do you remove MacPorts and all the packages it has installed?

  10. 10

    How to remove all packages installed because of KDE on Ubuntu 19.10

  11. 11

    How to remove kernel installed using dpkg command?

  12. 12

    How to remove packages not installed with Composer?

  13. 13

    List all packages which are loaded/defined (not installed)

  14. 14

    How to remove all packages with DNF on which no other package depends on

  15. 15

    How to list all installed packages

  16. 16

    How to list all installed packages

  17. 17

    debian: remove all packages installed on a specific day

  18. 18

    Remove completely all packages I installed?

  19. 19

    How to get installed/not installed state of **all** packages?

  20. 20

    How to tell which packages will be installed by snap

  21. 21

    how can i list all packages which ere installed by me in centos without dependencies

  22. 22

    Retrieve all installed packages and their versions from nodes

  23. 23

    How to remove a lot of packages installed at a particular time?

  24. 24

    How to uninstall or remove recently-installed packages

  25. 25

    How can one remove all packages installed after a certain date/time?

  26. 26

    How do you completely remove ubuntu-desktop along with all installed packages with it?

  27. 27

    How can one remove all packages installed after a certain date/time?

  28. 28

    how to remove all installed dependent packages while removing a package in centos 7?

  29. 29

    Meteor.JS: How to Remove All Packages from a Project

HotTag

Archive