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

   Using \textbf{zypper}  (and not \textbf{rpm} directly), 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}
$ zypper search -d bash
         \end{cmd}
         Without the \verb?-d? option only packages with
         \verb?bash? in their actual name are reported.  You
         may have to do \verb?zypper info? on the package
         to see where \textbf{bash} is mentioned.
         \item
         \begin{cmd}
$ zypper search bash
         \end{cmd}
         \item
         \begin{cmd}
$ zypper info  bash
         \end{cmd}
         \item
         \begin{cmd}
$ zypper info --requires  bash
         \end{cmd}
         will give a list of files \textbf{bash} requires.  Perhaps
         the easiest way to see what depends on having \textbf{bash}
         installed is to do
         \begin{cmd}
$ sudo zypper remove --dry-run bash
         \end{cmd}
         For this exercise \textbf{bash} is a bad choice since it is
         so integral to the system; you really can't remove it anyway.
      \end{enumerate}

   \end{sol}
\end{exe}

