The Following 18 Users Say Thank You to minimos For This Useful Post: | ||
|
2012-09-26
, 18:25
|
|
Posts: 1,583 |
Thanked: 1,203 times |
Joined on Dec 2011
@ Everywhere
|
#2
|
|
2012-09-26
, 20:16
|
Posts: 646 |
Thanked: 1,124 times |
Joined on Jul 2010
@ Espoo, Finland
|
#3
|
http://talk.maemo.org/showthread.php?p=1262280
noob question, is it has same goal? Thx btw,
The Following User Says Thank You to minimos For This Useful Post: | ||
|
2012-09-27
, 11:23
|
Posts: 31 |
Thanked: 2 times |
Joined on May 2012
|
#5
|
|
2012-09-27
, 13:09
|
Posts: 646 |
Thanked: 1,124 times |
Joined on Jul 2010
@ Espoo, Finland
|
#6
|
|
2012-10-30
, 21:49
|
Posts: 198 |
Thanked: 130 times |
Joined on Sep 2012
@ Pakistan
|
#7
|
|
2012-10-30
, 23:58
|
Posts: 646 |
Thanked: 1,124 times |
Joined on Jul 2010
@ Espoo, Finland
|
#8
|
|
2012-10-31
, 00:36
|
Posts: 198 |
Thanked: 130 times |
Joined on Sep 2012
@ Pakistan
|
#9
|
|
2013-02-10
, 05:01
|
Posts: 17 |
Thanked: 24 times |
Joined on Feb 2013
|
#10
|
I think I found a simple way of saving a copy of any installation package (whether coming from Nokia Store or manual apt-get command), at installation time.
It is a one line hack, so I'm not going to wrap it into a user-installable package.
So, open a terminal session as root, go to /etc/apt/apt-conf.d/, launch your favorite editor and create a file named "02backup" containing the following:
That's all.Code:Dpkg::Pre-Install-Pkgs {"BKPDIR=/home/user/MyDocs/AptBackup/; mkdir -p $BKPDIR; while read pkg; do cp $pkg $BKPDIR; done"};
Since the next installation, a directory /home/user/MyDocs/AptBackup/ should be created and all packages should be copied there.
I haven't tested with packages that download dependencies, but I believe also said dependencies will be 'backupped'.
Note: you may want to disable this feature if you are going to upgrade to a newer PR release, otherwise your upgrade will be slow and your storage getting filled.
It is a one line hack, so I'm not going to wrap it into a user-installable package.
So, open a terminal session as root, go to /etc/apt/apt-conf.d/, launch your favorite editor and create a file named "02backup" containing the following:
Since the next installation, a directory /home/user/MyDocs/AptBackup/ should be created and all packages should be copied there.
I haven't tested with packages that download dependencies, but I believe also said dependencies will be 'backupped'.
Note: you may want to disable this feature if you are going to upgrade to a newer PR release, otherwise your upgrade will be slow and your storage getting filled.