This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
remove_package [2018/08/14 23:15] – lami07 | remove_package [2019/08/14 22:50] – pavroo | ||
---|---|---|---|
Line 3: | Line 3: | ||
Removing installed packages can be done via one of the two tools: **apt-get** or **dpkg**. | Removing installed packages can be done via one of the two tools: **apt-get** or **dpkg**. | ||
- | Every command has to be run with root privileges | + | Every command has to be run with super user privileges **sudo**. |
1. To remove an already installed package (packages), run: | 1. To remove an already installed package (packages), run: | ||
- | | + | sudo apt-get remove package1 package2 |
2. To remove a package with its configuration: | 2. To remove a package with its configuration: | ||
- | | + | sudo apt-get purge package1 |
3. To remove not needed dependencies, | 3. To remove not needed dependencies, | ||
- | | + | sudo apt-get autoremove |
4. A package can be removed from the system via **dpkg** tool as well: | 4. A package can be removed from the system via **dpkg** tool as well: | ||
- | dpkg -r package1.deb | + | sudo dpkg -r package1.deb |
---- | ---- |