Re: Yum snapshot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, that works fine for "updates" but it bombs when I try to do it for just
one package, as seen here...

# yum install yum-utils --downloadonly --downloaddir=/usr/local/yum-extras

Loaded plugins: downloadonly, rhnplugin, security
Setting up Install Process
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 178, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 349, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd,
self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 180, in doCommand
    return base.installPkgs(extcmds)
  File "/usr/share/yum-cli/cli.py", line 583, in installPkgs
    self.install(pattern=arg)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 2560, in
install
    mypkgs = self.returnPackagesByDep(arg)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 2319, in
returnPackagesByDep
    sack = self.whatProvides(depname, depflags, depver)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 170, in
whatProvides
    pkgs = self.pkgSack.searchProvides(name)
  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 339, in
searchProvides
    return self._computeAggregateListResult("searchProvides", name)
  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 482, in
_computeAggregateListResult
    sackResult = apply(method, args)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 1017, in
searchProvides
    return self.searchPrco(name, "provides")
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 44, in
newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 945, in
searchPrco
    executeSQL(cur, "select DISTINCT pkgKey from %s where name %s ?" %
(prcotype,querytype), (name,))
  File "/usr/lib/python2.4/site-packages/yum/sqlutils.py", line 150, in
executeSQLPyFormat
    return cursor.execute(q, p)
  File "/usr/lib64/python2.4/site-packages/sqlite/main.py", line 249, in
execute
    parms = (self._unicodeConvert(parms[0]),)
  File "/usr/lib64/python2.4/site-packages/sqlite/main.py", line 217, in
_unicodeConvert
    converted_obj[k] = v.encode(*self.con.encoding)
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in
position 9: ordinal not in range(128)
#


Thanks,
Nic
On Tue, Apr 27, 2010 at 2:58 PM, Dewey Coffman <dcoffman@xxxxxxxxxxxxx>wrote:

> Do a
>
> yum update --downloadonly --downloaddir=/tmp/5.5updates
>
> and then save the rpms.
>
> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx
> [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Nicoli Stupinski
> Sent: Tuesday, April 27, 2010 1:34 PM
> To: redhat-list@xxxxxxxxxx
> Subject: Yum snapshot
>
> If I install the OS (Rhel 5.5) and do a "yum update" on May 1st on a
> test
> server, how can I get the same update (same set of patches, etc that
> were
> available on May 1st) done 6 months later on a second server?
>
> I want both servers to be running the same versions and patch levels
> that
> which our apps were tested.   So I need to save a copy of the rpms that
> were
> installed on May 1st with the first server and only install that set of
> rpms on the second server, 6 months later.   How would I go about doing
> that?
>
> Here's the curveball, the test server is a virtual host and the second
> server is not virtual.  So are there hardware dependent updates that I
> should be concered about?
>
> Thanks,
> Nic
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux