debianAPT的超級牛功能(轉)

post0發表於2007-08-10
debianAPT的超級牛功能(轉)[@more@]

The Super Cow Powers in Debian APT

呵呵,Debian 的 apt-get 說它有 Super Cow Powers 。

neo@zircon:~$ apt-get --help

apt 0.5.28.6 for linux i386 compiled on Mar 22 2005 07:17:03

Usage: apt-get [options] command

apt-get [options] install|remove pkg1 [pkg2 ...]

apt-get [options] source pkg1 [pkg2 ...]

apt-get is a simple command line interface for downloading and

installing packages. The most frequently used commands are update

and install.

Commands:

update - Retrieve new lists of packages

upgrade - Perform an upgrade

install - Install new packages (pkg is libc6 not libc6.deb)

remove - Remove packages

source - Download source archives

build-dep - Configure build-dependencies for source packages

dist-upgrade - Distribution upgrade, see apt-get(8)

dselect-upgrade - Follow dselect selections

clean - Erase downloaded archive files

autoclean - Erase old downloaded archive files

check - Verify that there are no broken dependencies

Options:

-h This help text.

-q Loggable output - no progress indicator

-qq No output except for errors

-d Download only - do NOT install or unpack archives

-s No-act. Perform ordering simulation

-y Assume Yes to all queries and do not prompt

-f Attempt to continue if the integrity check fails

-m Attempt to continue if archives are unlocatable

-u Show a list of upgraded packages as well

-b Build the source package after fetching it

-V Show verbose version numbers

-c=? Read this configuration file

-o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp

See the apt-get(8), sources.list(5) and apt.conf(5) manual

pages for more information and options.

This APT has Super Cow Powers.

neo@zircon:~$ apt-get moo

(__)

(oo)

/------/

/ | ||

* /---/

~~ ~~

...."Have you mooed today?"...

跳舞牛……

neo@zircon:~$ apt-build -v

apt-build version 0.11.10

neo@zircon:~$ apt-build moo

(__) ~

(oo) /

_____/___/

/ / / /

~ / * /

/ ___/

*----/

/

/ /

~ ~

..."Have you danced today? Discow!"...

Aptitude 說它沒有 Super Cow Powers 。貪心不足蛇吞象……

neo@zircon:~$ aptitude --help

aptitude 0.2.15.9

Usage: aptitude [-S fname] [-u|-i]

aptitude [options] ...

Actions (if none is specified, aptitude will enter interactive mode):

install - Install/upgrade packages

remove - Remove packages

purge - Remove packages and their configuration files

hold - Place packages on hold

unhold - Cancel a hold command for a package

markauto - Mark packages as having been automatically installed

unmarkauto - Mark packages as having been manually installed

forbid-version - Forbid aptitude from upgrading to a specific package version.

update - Download lists of new/upgradable packages

upgrade - Perform a safe upgrade

dist-upgrade - Perform an upgrade, possibly installing and removing packages

forget-new - Forget what packages are "new"

search - Search for a package by name and/or expression

show - Display detailed information about a package

clean - Erase downloaded package files

autoclean - Erase old downloaded package files

changelog - View a package's changelog

download - Download the .deb file for a package

Options:

-h This help text

-s Simulate actions, but do not actually perform them.

-d Only download packages, do not install or remove anything.

-P Always prompt for confirmation or actions

-y Assume that the answer to simple yes/no questions is 'yes'

-F format Specify a format for displaying search results; see the manual

-O order Specify how search results should be sorted; see the manual

-w width Specify the display width for formatting search results

-f Aggressively try to fix broken packages.

-V Show which versions of packages are to be installed.

-D Show the dependencies of automatically changed packages.

-Z Show the change in installed size of each package.

-v Display extra information. (may be supplied multiple times)

-t [release] Set the release from which packages should be installed

-o key=val Directly set the configuration option named 'key'

--with(out)-recommends Specify whether or not to treat recommends as

strong dependencies

-S fname: Read the aptitude extended status info from fname.

-u : Download new package lists on startup.

-i : Perform an install run on startup.

This aptitude does not have Super Cow Powers.

neo@zircon:~$ aptitude moo

There are no Easter Eggs in this program.

neo@zircon:~$ aptitude -v moo

There really are no Easter Eggs in this program.

neo@zircon:~$ aptitude -vv moo

Didn't I already tell you that there are no Easter Eggs in this program?

neo@zircon:~$ aptitude -vvv moo

Stop it!

neo@zircon:~$ aptitude -vvvv moo

Okay, okay, if I give you an Easter Egg, will you go away?

neo@zircon:~$ aptitude -vvvvv moo

All right, you win.

/----

-------/

/

/ |

-----------------/ --------

----------------------------------------------

Happy?

neo@zircon:~$ aptitude -vvvvvv moo

What is it? It's an elephant being eaten by a snake, of course

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8225414/viewspace-942652/,如需轉載,請註明出處,否則將追究法律責任。

相關文章