On 01/03/2012 11:38 AM, fre...@free.fr wrote:
What's the way to take, to test the presence of a list of packages
and to install one package or more in case where none are already
installed ?
This is handled by declaring package relationships via Depends:,
Recommends:, etc.
- Mail original -
De: Michael Shuler mich...@pbandjelly.org
À: debian-mentors@lists.debian.org
Envoyé: Mardi 3 Janvier 2012 18:44:42
Objet: Re: How to test the presence of packages ?
On 01/03/2012 11:38 AM, fre...@free.fr wrote:
What's the way to take, to test the presence of a list of
Il giorno mar, 03/01/2012 alle 18.56 +0100, fre...@free.fr ha scritto:
- Mail original -
De: Michael Shuler mich...@pbandjelly.org
À: debian-mentors@lists.debian.org
Envoyé: Mardi 3 Janvier 2012 18:44:42
Objet: Re: How to test the presence of packages ?
On 01/03/2012 11:38 AM,
On 03/01/12 13:08, fre...@free.fr wrote:
Hello,
What's the way to take, to test the presence of a list of packages and to
install one package or more in case where none are already installed ?
Regards,
Fred.
You mean like, in a package or a script?
--
Luis Alejandro Martínez
- Mail original -
De: Luis Alejandro Martínez Faneyth l...@huntingbears.com.ve
À: debian-mentors@lists.debian.org
Envoyé: Mardi 3 Janvier 2012 18:52:02
Objet: Re: How to test the presence of packages ?
You mean like, in a package or a script?
Thats the question, how to do it.
--
To
If you need a simple script logic, you could use bash like this:
==8==8==
#!/bin/bash
PACKAGES=package1 package2 package3
for PACKAGE in ${PACKAGES}; do
dpkg -l ${PACKAGE} /dev/null 21
if [ !$? ]; then
aptitude install
Replacing If none is installed then install package2 and package3 with
If none is installed then isntall package2, then the solution is:
Depends: package2 | package1 | package3 | package4
OK.
Replacing If one of this list is already installed with If at least
two out of this list are
Am Dienstag, den 03.01.2012, 14:29 -0430 schrieb Luis Alejandro Martínez
Faneyth:
If you need a simple script logic, you could use bash like this:
==8==8==
#!/bin/bash
PACKAGES=package1 package2 package3
for PACKAGE in ${PACKAGES}; do
8 matches
Mail list logo