[ubuntu-za] Downloading update files via script

Steyn Geldenhuys djsgeldenhuys at gmail.com
Fri Nov 8 06:06:50 UTC 2013


Morning

Use sudo apt-get *dist-upgrade*

>From apt-get's man page:

upgrade
    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. Packages currently installed with new
    versions available are retrieved and upgraded; under no
    circumstances are currently installed packages removed, or packages
    not already installed retrieved and installed. New versions of
    currently installed packages that cannot be upgraded without
    changing the install status of another package will be left at
    their current version. An update must be performed first so that
    apt-get knows that new versions of packages are available.

dist-upgrade
    dist-upgrade in addition to performing the function of upgrade,
    also intelligently handles changing dependencies with new versions
    of packages; apt-get has a "smart" conflict resolution system, and
    it will attempt to upgrade the most important packages at the
    expense of less important ones if necessary. So, dist-upgrade
    command may remove some packages. The /etc/apt/sources.list file
    contains a list of locations from which to retrieve desired package
    files. See also apt_preferences(5) for a mechanism for overriding
    the general settings for individual packages.



On 8 November 2013 07:54, Wikus <wikus at cheetah-microsystems.com> wrote:

> Morning everyone ,
>
> I have a little script with just this command :
>
> sudo apt-get update && sudo apt-get upgrade -dy
>
> It is scheduled to run every morning at 4am and this is just so that the
> update files are already
> downloaded when I want to work and not wait for the download. ( the -d
> option )
> It doesn't install automatically , I still do that myself.
>
> However I have noticed that  commands downloads all updates files except
> kernel update
> files. I must always still download kernel updates manually via the normal
> software updater.
>
> Why is that ? And is there another switch I can add to those commands so
> that it will download the
> kernel update files as well ?
>
> Thank you
>
> - Wikus
>
> --
>      _
>     | |
>     | |
>  ---   ---
> |J E S U S|
>  ---   ---
>     | |
>     | |
>     | |
>     | |   My King
>     ---
>
>
>
> --
> ubuntu-za mailing list
> ubuntu-za at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-za
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-za/attachments/20131108/ddc9ac46/attachment.html>


More information about the ubuntu-za mailing list