Is it possible to change the package dir?
Pascal Bleser
pascal.bleser at skynet.be
Wed Nov 15 07:44:56 PST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
M9 wrote:
> I have a fixed var partition, and it is too small to contain all the
> packages for a major upgrade.
> YaST2 can not be instructed anymore, to install from a dir, helas.
> I have about 900MB rpm packages sitting in /var/lib/smart/packages...
> I do not want to throw them away...
> If I could change this dir to a dir with more room, my problem would be
> solved for now.
Well, one option would simply be to mount another partition onto
/var/lib/smart/packages
If you don't want to use a separate partition for it, you can also mount
- --bind on Linux, e.g.:
mount --bind /tmp/smart-packages /var/lib/smart/packages
To add a mount --bind to /etc/fstab, the syntax is:
/tmp/smart-packages /var/lib/smart/packages bind defaults 0 0
The other option is to change smart's configuration variable "data-dir",
but that will also make smart use some directory instead of
/var/lib/smart, so you will also end up with e.g.
/tmp/smart/packages/
/tmp/smart/channels/
/tmp/smart/tmp/
/tmp/smart/cache
/tmp/smart/config
there.
If you prefer the latter option nevertheless, it's as simple as
smart config --set data-dir /tmp/smart
(or whatever directory you want to use for it)
Personally, I'd go for using a partition on its own to be able to give
it a specific size to avoid filling another critical partition (like /
with it). But then again, I use LVM, makes it really easy ;)
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\ <pascal.bleser at skynet.be> <guru at unixtech.be>
_\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFFWzX4r3NMWliFcXcRAjskAJ9zwNW7b2+I5DRWOHmQxmJpZb3NqgCfawZe
a2hvkmi+MXjntnai3xyzA6c=
=QcVM
-----END PGP SIGNATURE-----
More information about the Smart
mailing list