Results 1 to 3 of 3

Thread: Add to source list and import key with one command?

  1. #1
    Join Date
    Jan 2009
    Beans
    197
    Distro
    Ubuntu 10.04 Lucid Lynx

    Add to source list and import key with one command?

    If I have the this:

    Code:
    deb http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu jaunty main
    deb-src http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu jaunty main
    And the link to key, can I adapt it to something like this?

    Code:
    sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; sudo apt-get -q update; sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; sudo apt-get -q update

  2. #2
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 17.10 Artful Aardvark

    Re: Add to source list and import key with one command?

    You can use && to string two or more commands together e.g.
    Code:
    sudo apt-get update && sudo apt-get upgrade
    If one of the commands fails for some reason, the subsequent command(s) will not run; in other words, one command must be successfully run before the next will work. Kind of a fail-safe thing.

  3. #3
    Join Date
    Jan 2009
    Beans
    197
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Add to source list and import key with one command?

    Okay thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •