Autor |
Nachricht |
|
Titel: apt-get command sequence?
Verfasst 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? |
|
|
|
|
 |
|
|
|