24.04.2024, 04:43 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
LRC
Titel: apt-get command sequence?  BeitragVerfasst am: 29.11.2006, 01:12 Uhr



Anmeldung: 21. Apr 2006
Beiträge: 152
Wohnort: Ice and Snow
For my on individual style, I breakup my sources.list into a few files and then use cp to change the main sources.list.
cp /etc/apt/sources0/sources.list /etc/apt/ -r && apt-get update && apt-get dist-upgrade && cp /etc/apt/sources1/sources.list /etc/apt/ -r && apt-get update && apt-get dist-upgrade && cp /etc/apt/sources2/sources.list /etc/apt/ -r && apt-get update && apt-get dist-upgrade
Now this works alright, but I would like to make it run smoother if possible.
1) Is it possible to command cp to answer yes to overwrite (I cannot find a command that seems to fit the bill) or is ther some other command that will do the job?
2) After apt-get update, the command sequence stops if update comes up with misconnections or if the server has a package problem,. Is there a way for the command sequence to continue dispite the errors?
3) Now this I know is off the wall and potentionally dangerous, but is the a script that could see the dist-upgrade results (upgrade, remove, downgrade, new) and set parameters as to whether an upgrade will automatically occur (ei 0 removals, 10 or less upgrades), or will ask for conformation?
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.