Linux Lite Forums

Full Version: apt vs. apt-get
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm not sure if everyone knows this or not, but I recently learned that [tt]apt[/tt] can do just about everything that [tt]apt-get[/tt] can do and with a bit more style.

Quote:Basic commands:
list - list packages based on package names
search - search in package descriptions
show - show package details

update - update list of available packages

install - install packages
remove  - remove packages

upgrade - upgrade the system by installing/upgrading packages
full-upgrade - upgrade the system by removing/installing/upgrading packages

edit-sources - edit the source information file

No more [tt]apt-cache search[/tt]...just do [tt]apt search[/tt].

I apologize if this is common knowledge but I figured I'd share it to save people some keystrokes if they're still doing it the old way.
Thanks for the tip. So far I have three package information related commands in my Linux cheat sheet. It takes some practice to try out different commands and switches to see which one you like best for the desired output:

Code:
apt ...
apt-cache ...
dpkg ...