Package Management
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 lenny main contrib deb 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
Building your own install
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 – 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?