Additional commands for Ubuntu and Debian


From the command line, use any of the following commands to display information on version, available distributions, supported subscriptions and so on. The debian_downloader.bat and debian_downloader.sh executables are located in the folder where you extracted the Patch Downloader utility files, and can be used for either Ubuntu or Debian platforms.

  • To display the downloader help file, enter the following command:

    (Windows) debian_downloader.bat -help

    (UNIX) debian_downloader.sh -help

  • To display version information for the downloader, enter the following command:

    (Windows) debian_downloader.bat -version

    (UNIX) debian_downloader.sh -version

  • To list all available Ubuntu and Debian supported distributions, enter the following command:

    (Windows) debian_downloader.bat -listDists

    (UNIX) debian_downloader.sh -listDists

  • To list all available Ubuntu and Debian supported distributions filtered by given configuration file, enter the following command:

    (Windows) debian_downloader.bat -listDists <configFile>

    (UNIX) debian_downloader.sh -listDists <configFile>

    This command uses the following variable:

    Variable

    Description

    <configFile>

    Name of the configuration file.

  • To add a filter to the configuration file, enter the following command:

    debian_downloader.bat -addAptRepository  

    -configFile <configFile>
    -debian <flavor>
    -osVersion <version>
    -debArch <arch>
    -debRepo <apt-get repository>

    This command uses the following variable:

    Variable

    Description

    <configFile>

    Name of the configuration file. If the configuration file does not exist, a new file will be created.

    <flavor>

    Flavor of the OS, either Debian or Ubuntu.

    <version>

    Version of OS. For example, 18.04 for Ubuntu, or 8.0 for Debian.

    <arch>

    OS architecture type, either x86 or x86_64. If this option is not mentioned, both architectures will be filtered.

    <apt-get repository>

    apt-get repository specified in sources.list format: baseURL Distribution [Component1] [Component2]...[Component n]

    Debian example: http://ftp.debian.org/debian/dists squeeze

    Ubuntu example: http://archive.ubuntu.com/ubuntu bionic Restricted Main

  • To delete a filter from a given configuration file, enter the following command:

     debian_downloader.bat -deleteAptRepository

    -configFile <configFile>
    -debian <flavor>
    -osVersion <version>
    -debArch <arch>
    -debRepo <apt-get repository>

    This command uses the following variables:

    Variable

    Description

    <configFile>

    Name of the configuration file. If the configuration file does not exist, a new file will be created.

    <flavor>

    Flavor of the OS, either Debian or Ubuntu.

    <version>

    Version of OS. For example, 18.04 for Ubuntu, or 8.0 for Debian.

    <arch>

    OS architecture type, either 'x86' or 'x86_64'. If this option is not mentioned, both architectures will be filtered.

    <apt-get repository>

    apt-get repository specified in sources.list format: baseURL Distribution [Component]

    Debian example: http://ftp.debian.org/debian/dists squeeze

    Ubuntu example: http://archive.ubuntu.com/ubuntu bionic Restricted

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*