Magic wand of sudo apt-get??

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
arimakidd
Level 2
Level 2
Posts: 66
Joined: Thu Nov 02, 2017 11:37 pm

Magic wand of sudo apt-get??

Post by arimakidd » Sun Nov 12, 2017 9:25 pm

I was having tremendous issues troubleshooting the error 'mbstring' missing when trying to run phpmyadmin. All of a sudden I stumble upon an article that says use the command:

Code: Select all

sudo apt-get install php7.0-mbstring
What a waste of time trying to vi the php.ini files. Can some please explain sudo apt-get??? What repository does it pull from, can I literally install anything once it's available using this command??

User avatar
WharfRat
Level 21
Level 21
Posts: 13374
Joined: Thu Apr 07, 2011 8:15 pm

Re: Magic wand of sudo apt-get??

Post by WharfRat » Sun Nov 12, 2017 10:23 pm

apt-get is the command line interface to the package manager.

inxi -r will show the repositories it's pulling from

It's actually reading the contents of /etc/apt/sources.list.d/

To get an explanation of the package you installed you can apt show php7.0-mbstring
ImageImage

JasonStonier
Level 2
Level 2
Posts: 56
Joined: Sun Oct 02, 2016 10:51 am

Re: Magic wand of sudo apt-get??

Post by JasonStonier » Mon Nov 13, 2017 1:25 am

When I started with linux, I was like "so to install stuff I need to type 'sudo apt-get install yadayada' in the command line - Windows makes so much more sense, just click on an .exe..."

But the more I get into Linux the more I realise that the package manager concept is genius. apt-get pulls validated software from repositories and makes sure that all the dependencies are fulfilled. Basically, if it's available in the repository you can be pretty sure it'll work on your version of linux. This is the 'app store' concept, and linux nailed it.

Try things like sudo apt-cache search yourprogram to see what is available.

It's worth putting time in to really learning the package manager as it will change your life.

Captain Brillo
Level 3
Level 3
Posts: 131
Joined: Mon Oct 23, 2017 9:38 pm

Re: Magic wand of sudo apt-get??

Post by Captain Brillo » Mon Nov 13, 2017 3:03 pm

Every time I bork the Linux box, I learn something new - what a blast!
If it ain't broke, fix it anyway! Ha Ha!

Post Reply

Return to “Newbie Questions”