<div dir="ltr">I believe that the 'no packages given for erase' can be solved with the xargs option '--no-run-if-empty'. That will prevent xargs from executing anything if there are no arguments to pass. <div><br></div><div>The revised command would be:</div><div><span style="font-size:12.8px">rpm -qa|grep pulp| sudo xargs -n 1 --no-run-if-empty rpm -e --nodeps</span><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 13, 2017 at 4:20 PM, Sean Myers <span dir="ltr"><<a href="mailto:sean.myers@redhat.com" target="_blank">sean.myers@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It looks like the vagrant setup for Pulp 2 leaves a few packages installed that<br>
shouldn't be. Specifically, the 'lazy' ansible role is installing packages<br>
related to the streamer, which remain installed after provisioning. This doesn't<br>
apply if you aren't using the lazy role in ansible, but you most likely are.<br>
<br>
bizhang is properly fixing this for <a href="https://pulp.plan.io/issues/2497" rel="noreferrer" target="_blank">https://pulp.plan.io/issues/<wbr>2497</a>, but in the<br>
meantime you can work around the issue by removing all pulp packages before<br>
starting work.<br>
<br>
To rudely remove pulp packages:<br>
<br>
rpm -qa|grep pulp| sudo xargs -n 1 rpm -e --nodeps<br>
<br>
In english, this removes any package with 'pulp' in its name, regardless of whether<br>
or not that remove breaks dependencies.<br>
<br>
You can also add this to your Vagrantfile, using an "inline" shell provisioning step:<br>
<br>
dev.vm.provision "shell", inline: "rpm -qa|grep pulp| sudo xargs -n 1 rpm -e --nodeps"<br>
<br>
This provisioning step should happen right before the provisioning step that runs<br>
vagrant-setup.sh<br>
<br>
Note: The rpm command will fail if no pulp packages are installed, which presumably<br>
means that Vagrant has been fixed. If vagrant fails with and error message like<br>
"==> dev: rpm: no packages given for erase" when running vagrant up, that provisioning<br>
step can be removed, and provisioning can be completed by calling "vagrant provision".<br>
<br>
This hasn't been thoroughly tested, so if this solution is incorrect or incomplete,<br>
I apologize. Please reply with corrections if any are needed. :)<br>
<br>
<br>______________________________<wbr>_________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/pulp-dev</a><br>
<br></blockquote></div><br></div>