# zypper refresh - default answer

**URL:** <https://forums.suse.com/t/zypper-refresh-default-answer/24349>\
**Category:** SLES Configure-Administer\
**Created:** [August 29, 2013, 9:54pm UTC](https://forums.suse.com/t/zypper-refresh-default-answer/24349 "2013-08-29T21:54:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lz0rpx](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@lz0rpx](https://forums.suse.com/u/lz0rpx)\
**Post date:** [August 29, 2013, 9:54pm UTC](https://forums.suse.com/t/zypper-refresh-default-answer/24349/1 "2013-08-29T21:54:41Z")

</div>

hello,

I was wondering if there was a way to pass in an option to zypper when performing a refresh? From reading it seems as though a new key can be trusted or imported in the interactive mode only. Is this a true statment? I have a ton of servers to perform this against and was hoping a simple script to do the zypper refresh with trust always would work. I would like to not have to interact with each one.

[FONT=Courier New]New repository or package signing key received:  
Key ID: A852354BEE6D3D9E2  
Key Name: Repository key (Repository key) [me.you@whereever.com](mailto:me.you@whereever.com)  
Key Fingerprint: 0F1529BA80CA0DA4ED1BF2D7A853DSEEC6D332  
Repository: SLES11-SP1-Updates

Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a[/FONT]

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 29, 2013, 10:34pm UTC](https://forums.suse.com/t/zypper-refresh-default-answer/24349/2 "2013-08-29T22:34:59Z")

</div>

> [@](#):
>
> On Thu 29 Aug 2013 07:24:02 PM CDT, lz0rpx wrote:
> 
> hello,
> 
> I was wondering if there was a way to pass in an option to zypper when  
> performing a refresh? From reading it seems as though a new key can be  
> trusted or imported in the interactive mode only. Is this a true  
> statment? I have a ton of servers to perform this against and was  
> hoping a simple script to do the zypper refresh with trust always would  
> work. I would like to not have to interact with each one.
> 
> New repository or package signing key received:  
> Key ID: A852354BEE6D3D9E2  
> Key Name: Repository key (Repository key) [me.you@whereever.com](mailto:me.you@whereever.com)  
> Key Fingerprint: 0F1529BA80CA0DA4ED1BF2D7A853DSEEC6D332  
> Repository: SLES11-SP1-Updates
> 
> Do you want to reject the key, trust temporarily, or trust always?  
> [r/t/a/?] (r): a
> 
> Thanks in advance.

Hi  
You can add the --gpg-auto-import-keys option to automatically  
accept…

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
SUSE Knowledge Partner - If you find this post helpful and are logged  
into the web interface, show your appreciation and click on the  
 ![](https://forums.suse.com/images/buttons/reputation-40b.png)  
below.

---

<div class="post-metadata">

**Author:** ![lz0rpx](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@lz0rpx](https://forums.suse.com/u/lz0rpx)\
**Post date:** [August 30, 2013, 12:03am UTC](https://forums.suse.com/t/zypper-refresh-default-answer/24349/3 "2013-08-30T00:03:42Z")

</div>

works like a charm. thanks so much!
