anhkiet2507 Aug 3rd, 2018 13,280 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. Install a Package
  2. [root@users~]# dpkg -i flashpluginnonfree_2.8.2+squeeze1_i386.deb
  3. [root@users~]# dpkg --add-architecture i386
  4. 2. List all the installed Packages
  5. [root@users~]# dpkg -l
  6. To view a specific package installed or not use the option “-l” along with package-name. For example, check whether apache2 package installed or not.
  7. [root@users~]# dpkg -l apache2
  8. 3. Remove a Package
  9. [root@users~]# dpkg -r flashpluginnonfree
  10. You can also use ‘p‘ option in place of ‘r’ which will remove the package along with configuration file. The ‘r‘ option will only remove the package and not configuration files.
  11. [root@users~]# dpkg -p flashpluginnonfree
  12. 4. View the Content of a Package
  13. [root@users~]# dpkg -c flashplugin-nonfree_3.2_i386.deb
  14. 5. Check a Package is installed or not
  15. [root@users~]# dpkg -s flashplugin-nonfree
  16. 6. Check the location of Packages installed
  17. [root@users~]# dpkg -L flashplugin-nonfree
  18. 7. Install all Packages from a Directory
  19. [root@users~]# dpkg -R --install debpackages/
  20. 8. Unpack the Package but dont’ Configure
  21. Using action “–unpack” will unpack the package, but it will don’t install or configure it.
  22. [root@users~]# dpkg --unpack flashplugin-nonfree_3.2_i386.deb
  23. 9. Reconfigure a Unpacked Package
  24. [root@users~]# dpkg --configure flashplugin-nonfree
  25. 10. Replace available Package information
  26. The “–-update-avail” option replace the old information with the available information in the Packages file.
  27. [root@users~]# dpkg –-update-avail package_name
  28. 11. Erase Existing Available information of Package
  29. The action “–clear-avaial” will erase the current information about what packages are available.
  30. [root@users~]# dpkg –-clear-avail
  31. 12. Forget Uninstalled and Unavailable Packages
  32. The dpkg command with option “–forget-old-unavail” will automatically forget uninstalled and unavailable packages .
  33. [root@users~]# dpkg --forget-old-unavail
  34. 13. Display dpkg Licence
  35. [root@users~]# dpkg --licence
  36. 14. Display dpkg Version
  37. later for copying conditions. There is NO warranty.
  38. 15. Get all the Help about dpkg
  39. [root@users~]# dpkg –help
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!