\begin{exe} {Using APT to Find Information About a Package}

   Using \textbf{apt-cache} and \textbf{apt-get}
   (and not \textbf{dpkg}), find:

   \begin{enumerate}
      \item
      All packages that contain a reference to
      \textbf{bash} in their name or description.
      \item
      Installed and available \textbf{bash} packages.
      \item
      The package information for \textbf{bash}.
      \item
      The dependencies for the \textbf{bash} package.
   \end{enumerate}

   Try the commands you used above both as \texttt{root}
   and as a regular user. Do you notice any difference?

   \begin{sol}

      \begin{enumerate}
         \item
         \begin{cmd}
$ apt-cache search bash
         \end{cmd}
         \item
         \begin{cmd}
$ apt-cache search -n bash
         \end{cmd}
         \item
         \begin{cmd}
$ apt-cache show bash
         \end{cmd}
         \item
         \begin{cmd}
$ apt-cache depends bash
$ apt-cache rdepends bash
         \end{cmd}
      \end{enumerate}
   \end{sol}
\end{exe}

