This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| install_package [2015/06/03 20:38] – pavroo | install_package [2021/05/04 13:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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 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 is a package installed and find its version: | + | **2**. Check if a package |
| - | | + | sudo apt-cache policy package-name |
| - | 3. List all packages | + | **3**. Install a package (packages): |
| - | dpkg -l | + | sudo apt-get install package1 package2 package3 |
| - | or | + | |
| - | | + | |
| - | 4. Install a package | + | **4**. " |
| - | apt-get install | + | cd / |
| + | sudo dpkg -i package1.deb package2.deb package3.deb | ||
| - | 5. If you have downloaded a " | + | If the package(s) need extra dependencies, the installation |
| - | cd /patch-to-download-directory | + | sudo apt-get update |
| - | dpkg -i package1.deb package2.deb package3.deb | + | sudo apt-get install |
| - | If the package (packages) needs extra dependencies, | ||
| - | apt-get install | + | List of all packages installed on your system can be generated via the command: |
| + | |||
| + | sudo dpkg -l | ||
| + | or | ||
| + | sudo dpkg-query -l | ||
| ---- | ---- | ||
| - | <WRAP center box 38%> | + | <WRAP center box 75%> |
| - | [[upgrade|< | + | |[[upgrade|< |
| </ | </ | ||