package management. basic commands apt-get install : install package + dependencies apt-get remove :...
TRANSCRIPT
Basic Commands
• apt-get install : install package + dependencies• apt-get remove : removes the package not dependencies• apt-get autoremove : removes orphaned dependencies• apt-get clean : removes install files• apt-get purge : combines remove and clean + removes config
files• apt-cache pkgnames – generates a list of installed packages
Source Lists
• Where are repositories?
/etc/apt/sources.list
deb [location] [distro] [component(s)]deb http://mirror.cc.columbia.edu/pub/linux/debian/debian/ lenny main contrib deb http://emacs.orebokech.com lenny main
dpkg
dpkg -i [package file name].deb– Installs a package
dpkg --list [search pattern]– Lists packages installed on system
• Typically this is the back end of apt-get
Lets do this now
• What packages are installed on your server?
• What is the command to install Apache MySQL and PHP on your server? Do it.
• Also install phpmyadmin, then go to– http://IP address.gcsu.edu/phpmyadmin and login– Look in the /var/lib/mysql folder – write down the files from there– Create a new database using phpmyadmin– Look in the /var/lib/mysql folder – have the files changed
• Where are the config files for the AMP install?
• Remove the AMP install. Are the config files still there? Make sure all the files are removed from the system.
• Did the files change in the /var/lib/mysql folder?