If you want to install new software in Ubuntu, you must have the deb installation package (for example, linuxidc. deb), but cannot log on to the desktop. How can I install it? The answer is: run the dpkg command. Dpkg command commonly used format: sudodpkg-Ilinuxidc.deb # view linuxidc. deb Software Package details, including the software name, version and size (where-I is equivalent to -- info) sudodpkg-clinuxidc.deb # view l
If you want to install new software in Ubuntu, you must have the deb installation package (for example, linuxidc. deb), but cannot log on to the desktop. How can I install it? The answer is: run the dpkg command.
The common format of the dpkg command is as follows:
Sudo dpkg-I linuxidc. deb # view the details of the linuxidc. deb software package, including the software name, version, and size (where-I is equivalent to -- info)
Sudo dpkg-c linuxidc. deb # view the file structure contained in the linuxidc. deb Software Package (where-c is equivalent to -- contents)
Sudo dpkg-I linuxidc. deb # install the linuxidc. deb package (where-I is equivalent to -- install)
Sudo dpkg-l linuxidc # view the information of the linuxidc software package (the software name can be viewed using the dpkg-I command, where-l is equivalent to -- list)
Sudo dpkg-L linuxidc # view all the files installed in the linuxidc package (the software name can be viewed using the dpkg-I command, where-L is equivalent to -- listfiles)
Sudo dpkg-s linuxidc # view the details of the linuxidc package (the software name can be viewed using the dpkg-I command, where-s is equivalent to -- status)
Sudo dpkg-r linuxidc # uninstall the linuxidc package (the software name can be viewed using the dpkg-I command, where-r is equivalent to -- remove)
Note: The dpkg command cannot automatically resolve the dependency. If the deb package to be installed has a dependency package, do not use this command or install the dependency package in the order of dependency.