From: Michael Vogt Date: Mon, 6 Jan 2014 06:59:37 +0000 (+0100) Subject: improve apt.8.xml X-Git-Tag: 1.0~9^2~5 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/259d88d94843fbce7c8100f8b337b7b8fb58b840?ds=inline;hp=-c improve apt.8.xml --- 259d88d94843fbce7c8100f8b337b7b8fb58b840 diff --combined cmdline/apt.cc index 5771e664f,d2eb7a5a3..170478174 --- a/cmdline/apt.cc +++ b/cmdline/apt.cc @@@ -41,7 -41,6 +41,7 @@@ #include #include #include +#include #include @@@ -55,12 -54,8 +55,12 @@@ #include #include #include +#include +#include /*}}}*/ + + bool ShowHelp(CommandLine &CmdL) { ioprintf(c1out,_("%s %s for %s compiled on %s %s\n"),PACKAGE,PACKAGE_VERSION, @@@ -76,11 -71,11 +76,13 @@@ " search - search in package descriptions\n" " show - show package details\n" "\n" -- " update - update list of available packages\n" - " upgrade - upgrade the systems packages\n" - "\n" " install - install packages\n" - " upgrade - upgrade the systems packages\n" + " remove - remove packages\n" + "\n" + " edit-sources - edit the source information file\n" ++ "\n" ++ " update - update list of available packages\n" ++ " upgrade - upgrade the systems packages\n" ); return true; @@@ -96,8 -91,6 +98,8 @@@ int main(int argc, const char *argv[] {"remove", &DoInstall}, {"update",&DoUpdate}, {"upgrade",&DoUpgradeWithAllowNewPackages}, + // misc + {"edit-sources",&EditSources}, // helper {"moo",&DoMoo}, {"help",&ShowHelp}, diff --combined doc/apt.8.xml index 0340e043f,a0ae9086d..bb1f6bb91 --- a/doc/apt.8.xml +++ b/doc/apt.8.xml @@@ -13,7 -13,6 +13,6 @@@ - &apt-author.jgunthorpe; &apt-author.team; &apt-email; &apt-product; @@@ -42,18 -41,35 +41,26 @@@ - - update is used to - resynchronize the package index files from their sources. + + list is used to + display a list of packages. It supports shell pattern for matching + package names and the following options: + + + + are supported. - + - - upgrade is used to install the - newest versions of all packages currently installed on the system - from the sources enumerated in - /etc/apt/sources.list. New package will be - installed, but existing package will never removed. + + search searches for the given + term(s) and display matching packages. + + + - - update is used to - resynchronize the package index files from their sources. - - - - - upgrade is used to install the - newest versions of all packages currently installed on the system - from the sources enumerated in - /etc/apt/sources.list. New package will be - installed, but existing package will never removed. ++ ++ show shows the package information ++ for the given package(s). @@@ -80,6 -96,6 +87,28 @@@ installed instead of removed. ++ ++ edit-sources lets you edit ++ your sources.list file and provides basic sanity checks. ++ ++ ++ ++ ++ update is used to ++ resynchronize the package index files from their sources. ++ ++ ++ ++ ++ upgrade is used to install the ++ newest versions of all packages currently installed on the system ++ from the sources enumerated in ++ /etc/apt/sources.list. New package will be ++ installed, but existing package will never removed. ++ ++ ++ ++