Page 1 of 1

apt-get install mit Textfile

Posted: 2007-07-26 13:13
by michseel2
Hallo,

ich habe auf einem Rootserver eine Textfile, in der folgendes drinsteht:

Code: Select all

apache2 libapache2-mod-php5 php5 php5-mysql mysql-servere-5.0 mysql-client-5.0 mysql-common phpmyadmin
Nun möchte ich in "apt-get install" diese Textfile "einlesen", also er soll die Pakete die im Textfile stehen installieren. Wie mache ich das?

Gruß
michseel2

Re: apt-get install mit Textfile

Posted: 2007-07-26 13:21
by Anonymous
Bist du die Lösung gefunden hast, wenn es eine gibt, hast du schon 100 mal die Zeile aus dem File kopiert und dann bei einem einfachen apt-get install dazukopiert :roll:

Re: apt-get install mit Textfile

Posted: 2007-07-26 13:30
by hornox

Code: Select all

apt-get install `cat Textfile`
Sobald im Textfile nicht vertrauenswürdige Sachen drinnen stehen hast du damit eine Sichersproblem.
Wenn das mal wieder ein "Useless use of cat" ist wäre ich an einer besseren Version interessiert.

Re: apt-get install mit Textfile

Posted: 2007-07-26 13:32
by michseel2
Danke HornOx.

RobZe89: Ja, ich weiß. Ich benötige dies jedoch für Script für vServer-Einrichtung um dies zu vereinfachen.

Re: apt-get install mit Textfile

Posted: 2007-07-26 15:20
by Joe User

Code: Select all

apt-get install < inst.list
Sollte auch funktionieren...