xbps-bin(8): renamed autoupdate target to dist-upgrade.
This commit is contained in:
parent
28767f2ea8
commit
758cd4fd11
2
NEWS
2
NEWS
@ -1,5 +1,7 @@
|
|||||||
xbps-0.16 (???):
|
xbps-0.16 (???):
|
||||||
|
|
||||||
|
* xbps-bin(8): renamed "autoupdate" target to "dist-upgrade".
|
||||||
|
|
||||||
* Added support to put packages "on hold". Packages on hold
|
* Added support to put packages "on hold". Packages on hold
|
||||||
won't be updated by system upgrades even if there is a newer version.
|
won't be updated by system upgrades even if there is a newer version.
|
||||||
The configuration string list "PackagesOnHold" in xbps.conf expects
|
The configuration string list "PackagesOnHold" in xbps.conf expects
|
||||||
|
@ -44,7 +44,7 @@ struct list_pkgver_cb {
|
|||||||
int install_new_pkg(const char *, bool);
|
int install_new_pkg(const char *, bool);
|
||||||
int update_pkg(const char *);
|
int update_pkg(const char *);
|
||||||
int remove_pkg(const char *, bool);
|
int remove_pkg(const char *, bool);
|
||||||
int autoupdate_pkgs(bool, bool, bool);
|
int dist_upgrade(bool, bool, bool);
|
||||||
int autoremove_pkgs(bool, bool);
|
int autoremove_pkgs(bool, bool);
|
||||||
int exec_transaction(bool, bool, bool);
|
int exec_transaction(bool, bool, bool);
|
||||||
|
|
||||||
|
@ -64,10 +64,10 @@ usage(bool fail)
|
|||||||
"[targets]\n"
|
"[targets]\n"
|
||||||
" autoremove\n"
|
" autoremove\n"
|
||||||
" Auto remove all package orphans.\n"
|
" Auto remove all package orphans.\n"
|
||||||
" autoupdate\n"
|
|
||||||
" Auto update all packages to newest versions.\n"
|
|
||||||
" check <pkgname|all>\n"
|
" check <pkgname|all>\n"
|
||||||
" Package integrity check for `pkgname' or `all' packages.\n"
|
" Package integrity check for `pkgname' or `all' packages.\n"
|
||||||
|
" dist-upgrade\n"
|
||||||
|
" Update all currently installed packages to newest versions.\n"
|
||||||
" find-files <pattern> [patterns]\n"
|
" find-files <pattern> [patterns]\n"
|
||||||
" Print package name/version for any pattern matched.\n"
|
" Print package name/version for any pattern matched.\n"
|
||||||
" install <pattern> [patterns]\n"
|
" install <pattern> [patterns]\n"
|
||||||
@ -333,14 +333,14 @@ main(int argc, char **argv)
|
|||||||
else
|
else
|
||||||
rv = check_pkg_integrity(NULL, argv[1], true, NULL);
|
rv = check_pkg_integrity(NULL, argv[1], true, NULL);
|
||||||
|
|
||||||
} else if (strcasecmp(argv[0], "autoupdate") == 0) {
|
} else if (strcasecmp(argv[0], "dist-upgrade") == 0) {
|
||||||
/*
|
/*
|
||||||
* To update all packages currently installed.
|
* To update all packages currently installed.
|
||||||
*/
|
*/
|
||||||
if (argc != 1)
|
if (argc != 1)
|
||||||
usage(true);
|
usage(true);
|
||||||
|
|
||||||
rv = autoupdate_pkgs(yes, dry_run, show_download_pkglist_url);
|
rv = dist_upgrade(yes, dry_run, show_download_pkglist_url);
|
||||||
|
|
||||||
} else if (strcasecmp(argv[0], "show-orphans") == 0) {
|
} else if (strcasecmp(argv[0], "show-orphans") == 0) {
|
||||||
/*
|
/*
|
||||||
|
@ -215,7 +215,7 @@ show_transaction_sizes(struct transaction *trans)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
autoupdate_pkgs(bool yes, bool dry_run, bool show_download_pkglist_url)
|
dist_upgrade(bool yes, bool dry_run, bool show_download_pkglist_url)
|
||||||
{
|
{
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.Dd February 3, 2012
|
.Dd May 8, 2012
|
||||||
.Os Void GNU/Linux
|
.Os Void GNU/Linux
|
||||||
.Dt xbps-bin 8
|
.Dt xbps-bin 8
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -30,7 +30,7 @@ Sets the
|
|||||||
boolean object for a package, therefore explicitly
|
boolean object for a package, therefore explicitly
|
||||||
setting that package was installed as it were a dependency, even if it is not.
|
setting that package was installed as it were a dependency, even if it is not.
|
||||||
Use of this option takes effect in the
|
Use of this option takes effect in the
|
||||||
.Em autoupdate ,
|
.Em dist-upgrade ,
|
||||||
.Em install
|
.Em install
|
||||||
and
|
and
|
||||||
.Em update
|
.Em update
|
||||||
@ -51,7 +51,7 @@ Enables extra debugging output to be shown to stderr.
|
|||||||
Only show the URLs to download the binary packages from repositories. This is
|
Only show the URLs to download the binary packages from repositories. This is
|
||||||
useful if you want to download them by other means, and later you can move
|
useful if you want to download them by other means, and later you can move
|
||||||
them to the cachedir to start the installation. This option can be used for
|
them to the cachedir to start the installation. This option can be used for
|
||||||
the install, update and autoupdate targets.
|
the install, update and dist-upgrade targets.
|
||||||
.It Fl F
|
.It Fl F
|
||||||
Used currently in the
|
Used currently in the
|
||||||
.Em remove
|
.Em remove
|
||||||
@ -80,7 +80,7 @@ Sets the
|
|||||||
boolean object for package to false, therefore
|
boolean object for package to false, therefore
|
||||||
explicitly setting that package was installed manually by the user. Use of this
|
explicitly setting that package was installed manually by the user. Use of this
|
||||||
option takes effect in the
|
option takes effect in the
|
||||||
.Em autoupdate ,
|
.Em dist-upgrade ,
|
||||||
.Em install
|
.Em install
|
||||||
and
|
and
|
||||||
.Em update
|
.Em update
|
||||||
@ -91,7 +91,7 @@ Enables dry-run mode.
|
|||||||
To show the actions that would be executed in a transaction.
|
To show the actions that would be executed in a transaction.
|
||||||
This mode takes effect in the
|
This mode takes effect in the
|
||||||
.Em autoremove ,
|
.Em autoremove ,
|
||||||
.Em autoupdate ,
|
.Em dist-upgrade ,
|
||||||
.Em install ,
|
.Em install ,
|
||||||
.Rm remove
|
.Rm remove
|
||||||
and
|
and
|
||||||
@ -137,14 +137,14 @@ Please note that all targets are case insensitive.
|
|||||||
Removes package orphans. These packages were installed as dependencies and
|
Removes package orphans. These packages were installed as dependencies and
|
||||||
currently there is not any package depending on it, directly or indirectly.
|
currently there is not any package depending on it, directly or indirectly.
|
||||||
Usually it is safe to always answer yes.
|
Usually it is safe to always answer yes.
|
||||||
.It Sy autoupdate
|
|
||||||
Updates all currently installed packages to the newest version available in
|
|
||||||
all repositories.
|
|
||||||
.It Sy check Ar pkgname | Ar all
|
.It Sy check Ar pkgname | Ar all
|
||||||
Checks for integrity errors in installed packages. The checks are to found
|
Checks for integrity errors in installed packages. The checks are to found
|
||||||
missing run-time dependencies, missing and modified package files and
|
missing run-time dependencies, missing and modified package files and
|
||||||
metadata files. If the all keyword is used, all packages currently installed
|
metadata files. If the all keyword is used, all packages currently installed
|
||||||
will be checked, otherwise just pkgname.
|
will be checked, otherwise just pkgname.
|
||||||
|
.It Sy dist-upgrade
|
||||||
|
Updates all currently installed packages to the newest version available in
|
||||||
|
all repositories.
|
||||||
.It Sy find-files Ar pattern Ar [patterns ...]
|
.It Sy find-files Ar pattern Ar [patterns ...]
|
||||||
Prints the name of the installed
|
Prints the name of the installed
|
||||||
.Em package(s)
|
.Em package(s)
|
||||||
@ -229,7 +229,7 @@ Updates
|
|||||||
to the most newer version available in repository pool. This can be used if only
|
to the most newer version available in repository pool. This can be used if only
|
||||||
.Em pkgname(s)
|
.Em pkgname(s)
|
||||||
need to be updated, unlike the
|
need to be updated, unlike the
|
||||||
.Em autoupdate
|
.Em dist-upgrade
|
||||||
target that will update all currently installed packages.
|
target that will update all currently installed packages.
|
||||||
.Sh PACKAGE STATES
|
.Sh PACKAGE STATES
|
||||||
A package can be in a different state while it is being
|
A package can be in a different state while it is being
|
||||||
|
Loading…
x
Reference in New Issue
Block a user