[opensuse-factory] running zypper from crontab
Hello, Questions: 1. What command switches allow 'zypper -v up' to run from crontab ? 2. What command switches allow zypper to download the packages/rpm ? Thanks Glenn # zypper --help Usage: zypper [--global-options] <command> [--command-options] [arguments] Global Options: --help, -h Help. --version, -V Output the version number. --promptids Output a list of zypper's user prompts. --config, -c <file> Use specified config file instead of the default. --userdata <string> User defined transaction id used in history and plugins. --quiet, -q Suppress normal output, print only error messages. --verbose, -v Increase verbosity. --no-abbrev, -A Do not abbreviate text in tables. --table-style, -s Table style (integer). --rug-compatible, -r Turn on rug compatibility. --non-interactive, -n Do not ask anything, use default answers automatically. --non-interactive-include-reboot-patches Do not treat patches as interactive, which have the rebootSuggested-flag set. --xmlout, -x Switch to XML output. --ignore-unknown, -i Ignore unknown packages. --reposd-dir, -D <dir> Use alternative repository definition file directory. --cache-dir, -C <dir> Use alternative directory for all caches. --raw-cache-dir <dir> Use alternative raw meta-data cache directory. --solv-cache-dir <dir> Use alternative solv file cache directory. --pkg-cache-dir <dir> Use alternative package cache directory. Repository Options: --no-gpg-checks Ignore GPG check failures and continue. --gpg-auto-import-keys Automatically trust and import new repository signing keys. --plus-repo, -p <URI> Use an additional repository. --disable-repositories Do not read meta-data from repositories. --no-refresh Do not refresh the repositories. --no-cd Ignore CD/DVD repositories. --no-remote Ignore remote repositories. Target Options: --root, -R <dir> Operate on a different root directory. --disable-system-resolvables Do not read installed packages. Commands: help, ? Print help. shell, sh Accept multiple commands at once. Repository Management: repos, lr List all defined repositories. addrepo, ar Add a new repository. removerepo, rr Remove specified repository. renamerepo, nr Rename specified repository. modifyrepo, mr Modify specified repository. refresh, ref Refresh all repositories. clean Clean local caches. Service Management: services, ls List all defined services. addservice, as Add a new service. modifyservice, ms Modify specified service. removeservice, rs Remove specified service. refresh-services, refs Refresh all services. Software Management: install, in Install packages. remove, rm Remove packages. verify, ve Verify integrity of package dependencies. source-install, si Install source packages and their build dependencies. install-new-recommends, inr Install newly added packages recommended by installed packages. Update Management: update, up Update installed packages with newer versions. list-updates, lu List available updates. patch Install needed patches. list-patches, lp List needed patches. dist-upgrade, dup Perform a distribution upgrade. patch-check, pchk Check for patches. Querying: search, se Search for packages matching a pattern. info, if Show full information for specified packages. patch-info Show full information for specified patches. pattern-info Show full information for specified patterns. product-info Show full information for specified products. patches, pch List all available patches. packages, pa List all available packages. patterns, pt List all available patterns. products, pd List all available products. what-provides, wp List packages providing specified capability. Package Locks: addlock, al Add a package lock. removelock, rl Remove a package lock. locks, ll List current package locks. cleanlocks, cl Remove unused locks. Other Commands: versioncmp, vcmp Compare two version strings. targetos, tos Print the target operating system ID string. licenses Print report about licenses and EULAs of installed packages. source-download Download source rpms for all installed packages to a local directory. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sam, 2013-09-14 at 07:32 +1000, doiggl@velocitynet.com.au wrote:
Hello, Questions:
1. What command switches allow 'zypper -v up' to run from crontab ?
--non-interactive, -n Do not ask anything, use default answers automatically. then you probably want to add: -l, --auto-agree-with-licenses Automatically say 'yes' to third party license confirmation prompt. See man zypper for more details. That seems to do what you want?
2. What command switches allow zypper to download the packages/rpm ?
zypper install --download-only ? Dominique -- Dimstar / Dominique Leuenberger <dimstar@opensuse.org> -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sam, 2013-09-14 at 07:32 +1000, doiggl@velocitynet.com.au wrote:
Hello, Questions:
1. What command switches allow 'zypper -v up' to run from crontab ?
--non-interactive, -n Do not ask anything, use default answers automatically.
then you probably want to add: -l, --auto-agree-with-licenses Automatically say 'yes' to third party
On Sun, 15 Sep 2013 16:27:46 +0200, Dimstar / Dominique Leuenberger <dimstar@opensuse.org> wrote: license
confirmation prompt. See man zypper for more details.
That seems to do what you want?
2. What command switches allow zypper to download the packages/rpm ?
zypper install --download-only ?
Dominique -- Dimstar / Dominique Leuenberger <dimstar@opensuse.org>
Hello, Thanks, that did it - had to get switches in correct order --Glenn e.g # /usr/bin/zypper -vn up -l Verbosity: 1 Entering non-interactive mode. Initializing Target Checking whether to refresh metadata for openSUSE-13.1-Non-Oss Checking whether to refresh metadata for openSUSE-13.1-Oss Checking whether to refresh metadata for openSUSE-13.1-Update Checking whether to refresh metadata for openSUSE-13.1-Update-Non-Oss Loading repository data... Reading installed packages... Force resolution: No The following package update will NOT be installed: timezone 2013h-1.1 The following packages are going to be upgraded: flash-player 11.2.202.310-2.1.6 -> 11.2.202.327-14.1 flash-player-kde4 11.2.202.310-2.1.6 -> 11.2.202.327-14.1 libdcerpc-binding0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libdcerpc-binding0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libdcerpc0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libdcerpc0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libgensec0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libgensec0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libndr-krb5pac0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libndr-krb5pac0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libndr-nbt0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libndr-nbt0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libndr-standard0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libndr-standard0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libndr0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libndr0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libnetapi0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libnetapi0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libpdb0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libpdb0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libregistry0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsamba-credentials0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsamba-credentials0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsamba-hostconfig0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsamba-hostconfig0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsamba-util0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsamba-util0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsamdb0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsamdb0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsmbclient-raw0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsmbclient-raw0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsmbclient0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsmbconf0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsmbconf0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsmbldap0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libsmbldap0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libtevent-util0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libtevent-util0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 libwbclient0 4.1.0-3.5.1 -> 4.1.0-3.8.1 libwbclient0-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 samba-client 4.1.0-3.5.1 -> 4.1.0-3.8.1 samba-client-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 samba-libs 4.1.0-3.5.1 -> 4.1.0-3.8.1 samba-libs-32bit 4.1.0-3.5.1 -> 4.1.0-3.8.1 44 packages to upgrade. Overall download size: 19.9 MiB. After the operation, additional 11.9 KiB will be used. Continue? [y/n/? shows all options] (y): y Automatically agreeing with flash-player package license. committing Retrieving package libtevent-util0-4.1.0-3.8.1.x86_64 (1/44), 149.3 KiB ( 10.2 KiB unpacked) Retrieving: libtevent-util0-4.1.0-3.8.1.x86_64.rpm ...........................................................................[done] Retrieving package libtevent-util0-32bit-4.1.0-3.8.1.x86_64 (2/44), 149.3 KiB ( 9.5 KiB unpacked) Retrieving: libtevent-util0-32bit-4.1.0-3.8.1.x86_64.rpm .....................................................................[done] Retrieving package libdcerpc-binding0-4.1.0-3.8.1.x86_64 (3/44), 174.2 KiB (104.1 KiB unpacked) Retrieving: libdcerpc-binding0-4.1.0-3.8.1.x86_64.rpm ........................................................................[done] Retrieving package libdcerpc-binding0-32bit-4.1.0-3.8.1.x86_64 (4/44), 174.9 KiB (102.4 KiB unpacked) Retrieving: libdcerpc-binding0-32bit-4.1.0-3.8.1.x86_64.rpm ..................................................................[done] Retrieving package libndr-nbt0-4.1.0-3.8.1.x86_64 (5/44), 171.5 KiB ( 87.5 KiB unpacked) Retrieving: libndr-nbt0-4.1.0-3.8.1.x86_64.rpm ...............................................................................[done] Retrieving package samba-libs-32bit-4.1.0-3.8.1.x86_64 (6/44), 2.7 MiB ( 10.7 MiB unpacked) Retrieving: samba-libs-32bit-4.1.0-3.8.1.x86_64.rpm ..........................................................................[done] Retrieving package libgensec0-4.1.0-3.8.1.x86_64 (7/44), 192.8 KiB (148.2 KiB unpacked) Retrieving: libgensec0-4.1.0-3.8.1.x86_64.rpm ................................................................................[done] Retrieving package libsamba-util0-32bit-4.1.0-3.8.1.x86_64 (8/44), 225.8 KiB (215.2 KiB unpacked) Retrieving: libsamba-util0-32bit-4.1.0-3.8.1.x86_64.rpm ......................................................................[done] Retrieving package libsamba-credentials0-4.1.0-3.8.1.x86_64 (9/44), 168.9 KiB ( 67.4 KiB unpacked) Retrieving: libsamba-credentials0-4.1.0-3.8.1.x86_64.rpm .....................................................................[done] Retrieving package libndr0-32bit-4.1.0-3.8.1.x86_64 (10/44), 174.3 KiB ( 86.0 KiB unpacked) Retrieving: libndr0-32bit-4.1.0-3.8.1.x86_64.rpm .............................................................................[done] Retrieving package samba-libs-4.1.0-3.8.1.x86_64 (11/44), 2.7 MiB ( 10.9 MiB unpacked) Retrieving: samba-libs-4.1.0-3.8.1.x86_64.rpm ................................................................................[done] Retrieving package libsamba-hostconfig0-32bit-4.1.0-3.8.1.x86_64 (12/44), 190.4 KiB (210.4 KiB unpacked) Retrieving: libsamba-hostconfig0-32bit-4.1.0-3.8.1.x86_64.rpm ................................................................[done] Retrieving package libsamba-util0-4.1.0-3.8.1.x86_64 (13/44), 223.9 KiB (213.5 KiB unpacked) Retrieving: libsamba-util0-4.1.0-3.8.1.x86_64.rpm ............................................................................[done] Retrieving package libsamba-credentials0-32bit-4.1.0-3.8.1.x86_64 (14/44), 169.2 KiB ( 66.1 KiB unpacked) Retrieving: libsamba-credentials0-32bit-4.1.0-3.8.1.x86_64.rpm ...............................................................[done] Retrieving package libndr0-4.1.0-3.8.1.x86_64 (15/44), 173.1 KiB ( 87.2 KiB unpacked) Retrieving: libndr0-4.1.0-3.8.1.x86_64.rpm ...................................................................................[done] Retrieving package libsamdb0-32bit-4.1.0-3.8.1.x86_64 (16/44), 173.7 KiB ( 82.5 KiB unpacked) Retrieving: libsamdb0-32bit-4.1.0-3.8.1.x86_64.rpm ...........................................................................[done] Retrieving package libsamba-hostconfig0-4.1.0-3.8.1.x86_64 (17/44), 192.9 KiB (220.7 KiB unpacked) Retrieving: libsamba-hostconfig0-4.1.0-3.8.1.x86_64.rpm ......................................................................[done] Retrieving package libgensec0-32bit-4.1.0-3.8.1.x86_64 (18/44), 194.2 KiB (150.4 KiB unpacked) Retrieving: libgensec0-32bit-4.1.0-3.8.1.x86_64.rpm ..........................................................................[done] Retrieving package libndr-standard0-4.1.0-3.8.1.x86_64 (19/44), 792.2 KiB ( 3.1 MiB unpacked) Retrieving: libndr-standard0-4.1.0-3.8.1.x86_64.rpm ..........................................................................[done] Retrieving package libndr-nbt0-32bit-4.1.0-3.8.1.x86_64 (20/44), 171.9 KiB ( 90.1 KiB unpacked) Retrieving: libndr-nbt0-32bit-4.1.0-3.8.1.x86_64.rpm .........................................................................[done] Retrieving package libsmbconf0-4.1.0-3.8.1.x86_64 (21/44), 320.1 KiB (568.0 KiB unpacked) Retrieving: libsmbconf0-4.1.0-3.8.1.x86_64.rpm ...............................................................................[done] Retrieving package libndr-standard0-32bit-4.1.0-3.8.1.x86_64 (22/44), 743.9 KiB ( 3.1 MiB unpacked) Retrieving: libndr-standard0-32bit-4.1.0-3.8.1.x86_64.rpm ....................................................................[done] Retrieving package libsamdb0-4.1.0-3.8.1.x86_64 (23/44), 174.4 KiB ( 84.1 KiB unpacked) Retrieving: libsamdb0-4.1.0-3.8.1.x86_64.rpm .................................................................................[done] Retrieving package libsmbclient-raw0-32bit-4.1.0-3.8.1.x86_64 (24/44), 212.4 KiB (203.0 KiB unpacked) Retrieving: libsmbclient-raw0-32bit-4.1.0-3.8.1.x86_64.rpm ...................................................................[done] Retrieving package libwbclient0-4.1.0-3.8.1.x86_64 (25/44), 162.5 KiB ( 42.4 KiB unpacked) Retrieving: libwbclient0-4.1.0-3.8.1.x86_64.rpm ..............................................................................[done] Retrieving package libdcerpc0-32bit-4.1.0-3.8.1.x86_64 (26/44), 198.6 KiB (162.8 KiB unpacked) Retrieving: libdcerpc0-32bit-4.1.0-3.8.1.x86_64.rpm ..........................................................................[done] Retrieving package libsmbclient-raw0-4.1.0-3.8.1.x86_64 (27/44), 214.4 KiB (221.2 KiB unpacked) Retrieving: libsmbclient-raw0-4.1.0-3.8.1.x86_64.rpm .........................................................................[done] Retrieving package libndr-krb5pac0-32bit-4.1.0-3.8.1.x86_64 (28/44), 157.3 KiB ( 37.9 KiB unpacked) Retrieving: libndr-krb5pac0-32bit-4.1.0-3.8.1.x86_64.rpm .....................................................................[done] Retrieving package libdcerpc0-4.1.0-3.8.1.x86_64 (29/44), 196.6 KiB (160.9 KiB unpacked) Retrieving: libdcerpc0-4.1.0-3.8.1.x86_64.rpm ................................................................................[done] Retrieving package libsmbconf0-32bit-4.1.0-3.8.1.x86_64 (30/44), 321.9 KiB (550.3 KiB unpacked) Retrieving: libsmbconf0-32bit-4.1.0-3.8.1.x86_64.rpm .........................................................................[done] Retrieving package libpdb0-4.1.0-3.8.1.x86_64 (31/44), 211.0 KiB (213.4 KiB unpacked) Retrieving: libpdb0-4.1.0-3.8.1.x86_64.rpm ...................................................................................[done] Retrieving package libwbclient0-32bit-4.1.0-3.8.1.x86_64 (32/44), 162.5 KiB ( 41.5 KiB unpacked) Retrieving: libwbclient0-32bit-4.1.0-3.8.1.x86_64.rpm ........................................................................[done] Retrieving package libndr-krb5pac0-4.1.0-3.8.1.x86_64 (33/44), 157.4 KiB ( 39.0 KiB unpacked) Retrieving: libndr-krb5pac0-4.1.0-3.8.1.x86_64.rpm ...........................................................................[done] Retrieving package libpdb0-32bit-4.1.0-3.8.1.x86_64 (34/44), 210.5 KiB (207.0 KiB unpacked) Retrieving: libpdb0-32bit-4.1.0-3.8.1.x86_64.rpm .............................................................................[done] Retrieving package libnetapi0-4.1.0-3.8.1.x86_64 (35/44), 237.5 KiB (389.5 KiB unpacked) Retrieving: libnetapi0-4.1.0-3.8.1.x86_64.rpm ................................................................................[done] Retrieving package libnetapi0-32bit-4.1.0-3.8.1.x86_64 (36/44), 240.3 KiB (427.1 KiB unpacked) Retrieving: libnetapi0-32bit-4.1.0-3.8.1.x86_64.rpm ..........................................................................[done] Retrieving package libsmbldap0-4.1.0-3.8.1.x86_64 (37/44), 159.9 KiB ( 42.8 KiB unpacked) Retrieving: libsmbldap0-4.1.0-3.8.1.x86_64.rpm ...............................................................................[done] Retrieving package libsmbldap0-32bit-4.1.0-3.8.1.x86_64 (38/44), 160.0 KiB ( 41.7 KiB unpacked) Retrieving: libsmbldap0-32bit-4.1.0-3.8.1.x86_64.rpm .........................................................................[done] Retrieving package libsmbclient0-4.1.0-3.8.1.x86_64 (39/44), 192.3 KiB (144.3 KiB unpacked) Retrieving: libsmbclient0-4.1.0-3.8.1.x86_64.rpm .............................................................................[done] Retrieving package libregistry0-4.1.0-3.8.1.x86_64 (40/44), 191.3 KiB (136.0 KiB unpacked) Retrieving: libregistry0-4.1.0-3.8.1.x86_64.rpm ..............................................................................[done] Retrieving package samba-client-32bit-4.1.0-3.8.1.x86_64 (41/44), 150.3 KiB ( 9.5 KiB unpacked) Retrieving: samba-client-32bit-4.1.0-3.8.1.x86_64.rpm ........................................................................[done] Retrieving package samba-client-4.1.0-3.8.1.x86_64 (42/44), 1.1 MiB ( 2.9 MiB unpacked) Retrieving: samba-client-4.1.0-3.8.1.x86_64.rpm ..............................................................................[done] Retrieving package flash-player-11.2.202.327-14.1.x86_64 (43/44), 4.9 MiB ( 18.4 MiB unpacked) Retrieving: flash-player-11.2.202.327-14.1.x86_64.rpm ............................................................[done (1.4 MiB/s)] Retrieving package flash-player-kde4-11.2.202.327-14.1.x86_64 (44/44), 150.4 KiB (560.8 KiB unpacked) Retrieving: flash-player-kde4-11.2.202.327-14.1.x86_64.rpm ...................................................................[done] ( 1/44) Installing: libtevent-util0-4.1.0-3.8.1 ..............................................................................[done] ( 2/44) Installing: libtevent-util0-32bit-4.1.0-3.8.1 ........................................................................[done] ( 3/44) Installing: libdcerpc-binding0-4.1.0-3.8.1 ...........................................................................[done] ( 4/44) Installing: libdcerpc-binding0-32bit-4.1.0-3.8.1 .....................................................................[done] ( 5/44) Installing: libndr-nbt0-4.1.0-3.8.1 ..................................................................................[done] ( 6/44) Installing: samba-libs-32bit-4.1.0-3.8.1 .............................................................................[done] ( 7/44) Installing: libgensec0-4.1.0-3.8.1 ...................................................................................[done] ( 8/44) Installing: libsamba-util0-32bit-4.1.0-3.8.1 .........................................................................[done] ( 9/44) Installing: libsamba-credentials0-4.1.0-3.8.1 ........................................................................[done] (10/44) Installing: libndr0-32bit-4.1.0-3.8.1 ................................................................................[done] (11/44) Installing: samba-libs-4.1.0-3.8.1 ...................................................................................[done] (12/44) Installing: libsamba-hostconfig0-32bit-4.1.0-3.8.1 ...................................................................[done] (13/44) Installing: libsamba-util0-4.1.0-3.8.1 ...............................................................................[done] (14/44) Installing: libsamba-credentials0-32bit-4.1.0-3.8.1 ..................................................................[done] (15/44) Installing: libndr0-4.1.0-3.8.1 ......................................................................................[done] (16/44) Installing: libsamdb0-32bit-4.1.0-3.8.1 ..............................................................................[done] (17/44) Installing: libsamba-hostconfig0-4.1.0-3.8.1 .........................................................................[done] (18/44) Installing: libgensec0-32bit-4.1.0-3.8.1 .............................................................................[done] (19/44) Installing: libndr-standard0-4.1.0-3.8.1 .............................................................................[done] (20/44) Installing: libndr-nbt0-32bit-4.1.0-3.8.1 ............................................................................[done] (21/44) Installing: libsmbconf0-4.1.0-3.8.1 ..................................................................................[done] (22/44) Installing: libndr-standard0-32bit-4.1.0-3.8.1 .......................................................................[done] (23/44) Installing: libsamdb0-4.1.0-3.8.1 ....................................................................................[done] (24/44) Installing: libsmbclient-raw0-32bit-4.1.0-3.8.1 ......................................................................[done] (25/44) Installing: libwbclient0-4.1.0-3.8.1 .................................................................................[done] (26/44) Installing: libdcerpc0-32bit-4.1.0-3.8.1 .............................................................................[done] (27/44) Installing: libsmbclient-raw0-4.1.0-3.8.1 ............................................................................[done] (28/44) Installing: libndr-krb5pac0-32bit-4.1.0-3.8.1 ........................................................................[done] (29/44) Installing: libdcerpc0-4.1.0-3.8.1 ...................................................................................[done] (30/44) Installing: libsmbconf0-32bit-4.1.0-3.8.1 ............................................................................[done] (31/44) Installing: libpdb0-4.1.0-3.8.1 ......................................................................................[done] (32/44) Installing: libwbclient0-32bit-4.1.0-3.8.1 ...........................................................................[done] (33/44) Installing: libndr-krb5pac0-4.1.0-3.8.1 ..............................................................................[done] (34/44) Installing: libpdb0-32bit-4.1.0-3.8.1 ................................................................................[done] (35/44) Installing: libnetapi0-4.1.0-3.8.1 ...................................................................................[done] (36/44) Installing: libnetapi0-32bit-4.1.0-3.8.1 .............................................................................[done] (37/44) Installing: libsmbldap0-4.1.0-3.8.1 ..................................................................................[done] (38/44) Installing: libsmbldap0-32bit-4.1.0-3.8.1 ............................................................................[done] (39/44) Installing: libsmbclient0-4.1.0-3.8.1 ................................................................................[done] (40/44) Installing: libregistry0-4.1.0-3.8.1 .................................................................................[done] (41/44) Installing: samba-client-32bit-4.1.0-3.8.1 ...........................................................................[done] (42/44) Installing: samba-client-4.1.0-3.8.1 .................................................................................[done] Additional rpm output: Updating /etc/sysconfig/network/dhcp... (43/44) Installing: flash-player-11.2.202.327-14.1 ...........................................................................[done] (44/44) Installing: flash-player-kde4-11.2.202.327-14.1 ......................................................................[done] committingCommitResult (total 44, done 44, error 0, skipped 0, updateMessages 0) Checking for running processes using deleted libraries... -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, 13 Sep 2013 23:32, doiggl@velocitynet.com.au <doiggl@...> wrote:
Hello, Questions:
1. What command switches allow 'zypper -v up' to run from crontab ?
2. What command switches allow zypper to download the packages/rpm ?
Thanks Glenn
1. a) use a script to be started from cron, better to maintain. b) first refresh, (zypper -v ref) then download, (zypper -v up -l -d) [ maybe: --force-resolution --skip-interactive --best-effort ] then install. (zypper -v -l) [ maybe: --force-resolution --skip-interactive --best-effort ] 2. see "zypper help up" the param is "-d" e.g "zypper up -d" Be aware that this does NOT have ANY guaranty. It may work or not. YMMV - Yamaban. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sun, 15 Sep 2013 17:00:08 +0200 (CEST) Yamaban wrote:
b) first refresh, (zypper -v ref)
Isn't refresh done automatically when repositories are enabled for update? I, personally, run the only command 'zypper up', and all is done. -- WBR Kyrill
On Sun, 15 Sep 2013 17:51, Kyrill Detinov <lazy.kent@...> wrote:
On Sun, 15 Sep 2013 17:00:08 +0200 (CEST) Yamaban wrote:
b) first refresh, (zypper -v ref)
Isn't refresh done automatically when repositories are enabled for update?
I, personally, run the only command 'zypper up', and all is done.
AFAIK only for the "autorefresh" enabled repos. Better to refresh and then update, than having a dying "zypper update" for a "package xy.rpm in repo z not found" error. Interactive, that's no biggy, but automaticly via cron? Better make sure. - Yamaban. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (4)
-
Dimstar / Dominique Leuenberger
-
doiggl@velocitynet.com.au
-
Kyrill Detinov
-
Yamaban