5

Suppose I've spent a bit of time configuring an RPi just the way I want, but then I need to make updates, both to the distro and to the installed software.

In this question, how to update is covered: How do I update software and firmware?

My question is more about what happens to my setup when I do the update:

Can I assume that an update to the distro won't cause anything to require re-installation/reconfiguration - i.e. updates will be largely transparent? (I'm using Debian Wheezy beta, but the same applies more widely).

In the case of third party software (for example Apache or whatever), is there any way that these can auto-update, or at least notify me of the availability of an update?

Jon Egerton
  • 2,983
  • 2
  • 21
  • 31
  • Appreciate that this is a bit RPi unspecific, but it will apply to users new to Linux/RPi and getting to know how things work, especially when used to Windows or Mac OSX – Jon Egerton Jun 29 '12 at 10:01
  • @Oliver: I rejected the edit, as the question isn't "How to update" as I state in the question. I did improve the title though. – Jon Egerton Jun 29 '12 at 14:36

1 Answers1

3

Most well behaved software will maintain the customizations made,and you will not have to reapply your preferences and settings.

Having said that their are cases when a package introduces changes that are not fully backwards compatible and so may break something that is working, Or interact with other programs and cause similar problems. For this reason you may not want to have software autoupdate. You may instead want to apply the changes manually in a sandbox environment (a second SD Card for example) or wait to apply them to see if others in the community experience problems. However, if you do want to autoupdate the installed packages you can create a cron job to update the repository listing and installed packages (this method includes email and download only options as well).

There are some best practices you can apply to maintain your configuration. For system wide configs (normally contained within the /etc directory you can install etckeeper(note that these instructions are a little out of date and that installing etckeeper will default to using git and do an initial import for you). this program will keep all of the changes made to files in the /etc directory in source control allowing you to roll back changes if needed.

For personal configuration settings which are normally stored in your home directory as .file ("dot files" i.e. .bashrc), you can place them under version control as well.

Steve Robillard
  • 34,158
  • 17
  • 102
  • 108