This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
install_package [2018/08/14 23:01] – lami07 | install_package [2019/08/14 22:46] – pavroo | ||
---|---|---|---|
Line 4: | Line 4: | ||
This quick guide lets you find and install new packages via a text console. | This quick guide lets you find and install new packages via a text console. | ||
- | Every command has to be run with root privileges | + | Every command has to be run with super user privileges **sudo**. |
1. Find a package: | 1. Find a package: | ||
- | | + | sudo apt-cache search package-name |
2. Check if a package is installed and find its version: | 2. Check if a package is installed and find its version: | ||
- | | + | sudo apt-cache policy package-name |
3. Install a package (packages): | 3. Install a package (packages): | ||
- | | + | sudo apt-get install package1 package2 package3 |
- | 4. " | + | 4. " |
cd / | cd / | ||
- | dpkg -i package1.deb package2.deb package3.deb | + | sudo dpkg -i package1.deb package2.deb package3.deb |
If the package (packages) needs extra dependencies, | If the package (packages) needs extra dependencies, | ||
- | | + | sudo apt-get update |
- | | + | sudo apt-get install -f |
List of all packages installed on your system can be generated via the command: | List of all packages installed on your system can be generated via the command: | ||
- | dpkg -l | + | sudo dpkg -l |
or | or | ||
- | | + | sudo dpkg-query -l |
---- | ---- |