View previous topic :: View next topic |
Author |
Message |
Jacco n00b
Joined: 24 Aug 2004 Posts: 23 Location: Treviso, Italy
|
Posted: Tue Sep 07, 2004 7:03 am Post subject: [Bash scripting] Ma cos'è il ".deballing"? |
|
|
Spero di non essere troppo OT
Sto terminando un rozzissimo script bash per l'installazione di alcuni pacchetti Unix attraverso dpkg-deb... ma dopo aver installato con successo XFree86 (da binari) e dopo aver compilato, sempre con successo, Perl, mi si impianta proprio nella fase più calda ossia quella nella quale dovrebbe usare il comando dpkg-deb per installare i pacchetti al loro posto... Ecco come è fatto lo script nel punto in questione Code: | echo 'Now, we can finally install applications and configuration files'
cd $INSTALLATION_PATH/Tevax_debs
for packages in ${Apps_Tevax[*]}
do
echo Installing $packages
dpkg-deb -x $packages.deb /
done
|
Il risultato che ottengo è il seguente Code: | .deb': No such file or directory `tar_1.14-1 | ovviamente per ogni pacchetto da installare.
Allora ho provato a modificare lo script togliendo la riga di dpkg e lasciando la riga do echo, aggiungendo .deb alla fine del comando:
Code: | for packages in ${Apps_Tevax[*]}
do
echo Installing $packages.deb
done |
Ottengo un risultato stranissimo Code: |
.deballing dlcompat_20030629-15.deb
.deballing glib-shlibs_1.2.10-18.deb
.deballing audiofile_0.2.3-4.deb
.deballing bluefish_0.12-13.deb
.deballing imlib-shlibs_1.9.14-14.deb
| Eccetera.... Eccetera....
Ma da dove salta fuori quel .deballing???
Cosa ho sbagliato? _________________ "The back of macs is better than any front of pc's"
Phil Schiller |
|
Back to top |
|
|
silian87 Advocate
Joined: 06 Oct 2003 Posts: 2318 Location: Treviso, Italy
|
|
Back to top |
|
|
Jacco n00b
Joined: 24 Aug 2004 Posts: 23 Location: Treviso, Italy
|
Posted: Tue Sep 07, 2004 7:10 am Post subject: |
|
|
silian87 wrote: | In tanto mi fai il piacere di mettere le virgolette... grazie...
Code: | echo "Installing $packages.deb" |
|
Intanto "intanto" si scrive attaccato...grazie...
E intanto anche senza virgolette funziona lo stesso....prego _________________ "The back of macs is better than any front of pc's"
Phil Schiller |
|
Back to top |
|
|
pascalbrax Apprentice
Joined: 21 Jan 2004 Posts: 280 Location: 127.0.0.1
|
Posted: Tue Sep 07, 2004 7:14 am Post subject: |
|
|
e' questione di convenzione... _________________ "One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler |
|
Back to top |
|
|
silian87 Advocate
Joined: 06 Oct 2003 Posts: 2318 Location: Treviso, Italy
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Tue Sep 07, 2004 7:46 am Post subject: |
|
|
[MOD]Post bloccato perche' il problema non mi sembra centri tanto con gentoo[/MOD] _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|