Keeping files downloaded by Smart
John Pilkington
J.Pilk at tesco.net
Thu Jan 19 12:56:12 PST 2006
Hi Axel et al
Many thanks for your test/info. Here's what I get:
# smart config --data-dir=/var/lib/smart
( this was just to check that I was looking in the right place)
( owner, group can read, write /var/lib/smart/config )
# smart config --set remove-packages=false
error: Configuration is in readonly mode.
# smart config --show remove-packages
warning: Option 'remove-packages' not found.
???
John
>
> The following works
>
> smart config --set remove-packages=false
>
> Martin just switched the logic in the example.
>
> Packages land under /var/lib/smart/packages/, so you can NFS-export
> this to your other clients.
>
> Test:
>
> # smart config --set remove-packages=false
>
> # smart install ivtv-firmware-audio
> Loading cache...
> Updating cache...
> ######################################## [100%]
>
> Computing transaction...
>
> Installed packages (1):
> ivtv-firmware-audio-0.0.1-5.at at noarch
>
> 9.6kB of package files are needed. 13.0kB will be used.
>
> Confirm changes? (Y/n):
>
> Fetching packages...
> -> http://dl.atrpms.net/.../ivtv-firmware-audio-0.0.1-5.at.noarch.rpm
> ivtv-firmware-audio-0.0.1-5.a..
> ######################################## [100%]
>
>
> Committing transaction...
> Preparing...
> ######################################## [ 0%]
> 1:Installing
> ivtv-firmware.. ######################################## [100%]
>
>
> # ls /var/lib/smart/packages/
> ivtv-firmware-audio-0.0.1-5.at.noarch.rpm
>
>
> On Thu, Jan 19, 2006 at 05:22:56PM +0000, John Pilkington wrote:
>
>>I posted a shorter version of this on the ATrpms list yesterday, but it
>>looks more at home here:
>>
>>I asked how to use smart to install rpm packages and still retain them
>>for use elsewhere - this facility was present in synaptic, now obsolete
>>in the ATrpms fc3 repo.
>>
>>Martin Lubich reported success using:
>>
>> smart config --set remove-packages=true
>>
>>but this didn't seem to fit the current version of Smart on ATrpms for
>>fc3 (remove-packages wasn't recognized, and the logic looks wrong).
>>
>>After trying several variations suggested by smart --help and variants
>>it looked as if
>>
>> smart config --set clean=false
>>
>>might work: at least it produced a plausible response to
>>
>> smart config --show clean ----> False
>>
>>But this doesn't appear to affect operations. The packages folder is
>>still cleaned after installation, using either smart alone or smart-gui.
>>
>>HTH - other suggestions still hoped-for!
>>
>>John
>
>
More information about the Smart
mailing list