Ask Your Question
1

Package Install Progress

asked 2013-01-22 05:26:32 -0500

mrpmr gravatar image

updated 2013-02-10 17:56:42 -0500

Stefan gravatar image

Hi

I'm installing a large rpm using Puppet. Using puppet agent --test with --verbose --debug enabled I'm able to see the rpm its currently installing and the underlying yum command it's running.

Is there also a way to get the percentage completion of the install that running it through yum would show. Trying to figure out if the package is still installing or if it's just stuck!

Thanks

Paul

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-02-12 09:05:31 -0500

llowder gravatar image

Given Stefan's answer, if you need that output your best option may be to either extend the existing yum provider to take a switch that would enable verbose output (and perhaps a more easily determined file name for it) or create a new provider that has the additional features.

I'd also recommend that you file a redmine ticket with a feature request (and if you do your own, attach a pull request).

edit flag offensive delete link more
2

answered 2013-01-23 12:23:05 -0500

Stefan gravatar image

Puppet does not offer a way to get any live output. Puppet will however redirect the output of yum to a temporary file (with a random name and most likely inside /tmp) that will automatically be removed after the yum process terminates.

If you can locate that file you may be able to see the progress, but since the yum provider installs a package with yum -d 0 -e 0 -y <packagename> I bet you will just see an empty file.

So if yum itself does not create a logfile where you can monitor the installation progress I'm afraid ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-01-22 05:26:32 -0500

Seen: 967 times

Last updated: Feb 12 '13