Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Install a Package
- [root@users~]# dpkg -i flashpluginnonfree_2.8.2+squeeze1_i386.deb
- [root@users~]# dpkg --add-architecture i386
- 2. List all the installed Packages
- [root@users~]# dpkg -l
- 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.
- [root@users~]# dpkg -l apache2
- 3. Remove a Package
- [root@users~]# dpkg -r flashpluginnonfree
- 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.
- [root@users~]# dpkg -p flashpluginnonfree
- 4. View the Content of a Package
- [root@users~]# dpkg -c flashplugin-nonfree_3.2_i386.deb
- 5. Check a Package is installed or not
- [root@users~]# dpkg -s flashplugin-nonfree
- 6. Check the location of Packages installed
- [root@users~]# dpkg -L flashplugin-nonfree
- 7. Install all Packages from a Directory
- [root@users~]# dpkg -R --install debpackages/
- 8. Unpack the Package but dont’ Configure
- Using action “–unpack” will unpack the package, but it will don’t install or configure it.
- [root@users~]# dpkg --unpack flashplugin-nonfree_3.2_i386.deb
- 9. Reconfigure a Unpacked Package
- [root@users~]# dpkg --configure flashplugin-nonfree
- 10. Replace available Package information
- The “–-update-avail” option replace the old information with the available information in the Packages file.
- [root@users~]# dpkg –-update-avail package_name
- 11. Erase Existing Available information of Package
- The action “–clear-avaial” will erase the current information about what packages are available.
- [root@users~]# dpkg –-clear-avail
- 12. Forget Uninstalled and Unavailable Packages
- The dpkg command with option “–forget-old-unavail” will automatically forget uninstalled and unavailable packages .
- [root@users~]# dpkg --forget-old-unavail
- 13. Display dpkg Licence
- [root@users~]# dpkg --licence
- 14. Display dpkg Version
- later for copying conditions. There is NO warranty.
- 15. Get all the Help about dpkg
- [root@users~]# dpkg –help
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement