User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: How can I Update debian without reformatting card?

Sat Apr 21, 2012 4:11 pm

The topic title says it all!  I want to go ahead and update my debian image, but I don't want to loose all my work *every time* a new image is released.  Are these updates limited to the fat partition, or do they cover other areas as well?

Maybe if someone could take a zip (or tar whatever) of the updated files and write a quick script that moves them to the right location to update whenever a new image is released?  If someone could tell me what files specifically were affected, I'd be willing to work on this.
Dear forum: Play nice ;-)

itsonlyme
Posts: 131
Joined: Sun Feb 12, 2012 12:43 pm

Re: How can I Update debian without reformatting card?

Sat Apr 21, 2012 4:27 pm

I am still working on getting my pi as I want, and doing an enormous amount of learning in the process.

This problem is only being a little annoyance at the present time, but it has been worrying me. The time will come when setting everything up again (and again….) will become for me a real time consumer. Anything to minimise this process, by not changing settings and distribution files unless they are actually revised in the new version would be a very welcome blessing to most users.

rmm200
Posts: 259
Joined: Sat Mar 03, 2012 10:25 pm

Re: How can I Update debian without reformatting card?

Sat Apr 21, 2012 4:30 pm

My needs are simple... I just want an update manager like the major distributions have, let me pick from available updates, and install them on the fly...

Really the goal is to create an SD card - once - and then be able to update it in place.

paulie
Posts: 275
Joined: Thu Jan 19, 2012 6:51 pm

Re: How can I Update debian without reformatting card?

Sat Apr 21, 2012 7:52 pm

The Debian package manager is called Apt.
There are front-ends available (Aptitude).
To obtain a package from the command line:
With root privileges

apt-get install {packagename}

Apt keeps a list of packages, and a list of sources in file /etc/apt/sources.list

As new packages are added, and new versions arrive, you may wish to keep Apt up-to-date with the following command:

apt-get update

To upgrade:

apt-get dist-upgrade

Debian has good help pages (or use man)
It has been my custom to use Xeyes

rmm200
Posts: 259
Joined: Sat Mar 03, 2012 10:25 pm

Re: How can I Update debian without reformatting card?

Sat Apr 21, 2012 8:26 pm

I know how it works on a normal Debian distribution - for some reason I did not think it would work on the highly tailored ARM version we are given to install.

andyl
Posts: 265
Joined: Tue Jan 10, 2012 11:05 am

Re: How can I Update debian without reformatting card?

Sat Apr 21, 2012 8:37 pm

Someone has already described how to use apt to keep your system up to date.

I don't know if the GPU blob is in the debian apt repository (in the non-free section) yet*.  Hopefully at some stage it will be, and then if ever changes (and that is very likely) the blob will be upgraded with a dist-upgrade.

I'm not sure the Pi supports reloading the blob so a restart might be needed.

The same for the non-free libraries in the graphics stack.

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: How can I Update debian without reformatting card?

Sat Apr 21, 2012 9:13 pm

paulie said:


The Debian package manager is called Apt.
There are front-ends available (Aptitude).
To obtain a package from the command line:
With root privileges

apt-get install {packagename}

Apt keeps a list of packages, and a list of sources in file /etc/apt/sources.list

As new packages are added, and new versions arrive, you may wish to keep Apt up-to-date with the following command:

apt-get update

To upgrade:

apt-get dist-upgrade

Debian has good help pages (or use man)



er... yeah, that's not going to update the alsa drivers or the firmware.  I don't think that would actually update anything in the latest debian release for the R-pi.
Dear forum: Play nice ;-)

Hexxeh
Posts: 91
Joined: Thu Apr 05, 2012 3:07 pm
Contact: Website

Re: How can I Update debian without reformatting card?

Sat Apr 21, 2012 9:18 pm

I'm trying to fix this problem to a degree, check my thread about rpi-updater out in this forum.

paulie
Posts: 275
Joined: Thu Jan 19, 2012 6:51 pm

Re: How can I Update debian without reformatting card?

Sat Apr 21, 2012 9:32 pm

Surely, if apt can find an updated package (by checking sources.list) it will work, unless you need it as a module (insmod/modprobe/ or however you load them.... I can"t remember how modules are listed or how you make them available (loaded at the same time you get your kernel?)

Reaching the edge of my understanding (and looking down into the abyss)
It has been my custom to use Xeyes

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: How can I Update debian without reformatting card?

Sun Apr 22, 2012 2:32 am

paulie said:


Surely, if apt can find an updated package (by checking sources.list) it will work, unless you need it as a module (insmod/modprobe/ or however you load them.... I can"t remember how modules are listed or how you make them available (loaded at the same time you get your kernel?)

Reaching the edge of my understanding (and looking down into the abyss)



That is the rub, if apt could find an update package it would work, but as it stands now these things are outside the standard debian distro.  They unique to the r-pi.  Now a zip folder that ran a little script moving the update items should work, but we'd need to know what files are affected.  I think hexxeh might be on that path
Dear forum: Play nice ;-)

ForthPi
Posts: 7
Joined: Sun Apr 22, 2012 3:14 am

Re: How can I Update debian without reformatting card?

Sun Apr 22, 2012 4:35 am

Abishur said:

[...] if apt could find an update package it would work, but as it stands now these things are outside the standard debian distro.  They unique to the r-pi.

I think the main goal is to have everything needed included in Debian.

I am sure Debian people will be very interested and cooperative re pi support.

ForthPi
Posts: 7
Joined: Sun Apr 22, 2012 3:14 am

Re: How can I Update debian without reformatting card?

Sun Apr 22, 2012 4:35 am

Abishur said:

[...] if apt could find an update package it would work, but as it stands now these things are outside the standard debian distro.  They unique to the r-pi.

I think the main goal is to have everything needed included in Debian.

I am sure Debian people will be very interested and cooperative re pi support.

yell
Posts: 19
Joined: Sat Mar 10, 2012 10:56 pm

Re: How can I Update debian without reformatting card?

Sun Apr 22, 2012 4:10 pm

Moving your /home (and maybe /tmp) partition(s) to an USB stick / drive  should solve your issues.

Try reading some about Linux Directory Structure

http://www.lesbell.com.au/Home.....enDocument

Return to “General discussion”