All Gurus once were Newbies
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
- Level 2
- Posts: 66
- Joined: Thu Nov 02, 2017 11:37 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??
- Level 21
- Posts: 13374
- Joined: Thu Apr 07, 2011 8:15 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
- Level 2
- Posts: 56
- Joined: Sun Oct 02, 2016 10:51 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.
- Level 3
- Posts: 131
- Joined: Mon Oct 23, 2017 9:38 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!