Linux+ QOTW 10-14-05

Discussion in 'Linux+' started by tripwire45, Oct 14, 2005.

  1. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    180
    287
    You are on the command line of a Debian Linux machine. You run the command:
    Code:
    apt-cache policy [i]packagename[/i]
    Which of the statements below is true about this command? Choose all that apply.

    1. You can run this command as a standard user.
    2. You must be root to run this command.
    3. The result of this command will tell you if the package is in apt for this release.
    4. The result will only tell you if the package is installed on your system.
    5. The result will tell you the version of the apt-get utility on your system.

    Answer next week.

    PS: I stoled this QOTW from Freddy so he'd be "cheating" if he answered. :wink:
     
    Certifications: A+ and Network+
  2. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    180
    287
    No takers, eh? It's been 10 days for a "QOTW" so I guess the answer is overdue. Answers 1 and 3 are correct. Here's a sample:

    Code:
    jmpyles@tripwire:~$ apt-cache policy mozilla-firefox
    mozilla-firefox:
      Installed: 1.0.4-2sarge5
      Candidate: 1.0.4-2sarge5
      Version Table:
     *** 1.0.4-2sarge5 0
            500 http://security.debian.org sarge/updates/main Packages
            100 /var/lib/dpkg/status
         1.0.4-2 0
            500 ftp://debian.oregonstate.edu sarge/main Packages
    jmpyles@tripwire:~$
     
    Certifications: A+ and Network+

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.