LINUX LITE 7.4 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
apt vs. apt-get
#1
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.
Reply
#2
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 ...
LL 2.4, Xubuntu 14.04.2, Debian 8, Manjaro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)