Find the answer to your Linux question:
Results 1 to 2 of 2
Is there a way to run apt-cdrom without user intervention from a bash script? I know what I want to call the CD, but the program prompts you for a ...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    41

    apt-cdrom w/ no user intervention

    Is there a way to run apt-cdrom without user intervention from a bash script? I know what I want to call the CD, but the program prompts you for a CD name and asks for other CD's in the collection. I only have one CD repo to add. Thanks!

  2. #2
    Just Joined!
    Join Date
    Dec 2006
    Posts
    41
    Figured it out with simple i/o redirection - should have thought of that.

    $echo "disc name" | apt-cdrom add

Posting Permissions

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