Dear Vpi,
I tried this pkg=pfring; rpm -qa | grep -q $pkg ; [ $? -eq 0 ]
&& echo ok, $pkg removed || echo $pkg
and gave me this pfring
Regards,
Frwa.
On Mon, Aug 26, 2013 at 11:59 PM, [email protected] <[email protected]
> wrote:
> On 08/26/2013 05:45 PM, frwa onto wrote:
> > Dear Vpi,
> > This command is not showing anything rpm -ev $(rpm -qa |
> grep pfring) ?
>
> In case of success it wont produces any messages; if you want more
> verbosity use something like this:
>
> rpm -evH $(....
>
> -btw: you can test the bash exit status from the previous command, see [1]
>
> for example
>
> pkg=pfring; rpm -qa | grep -q $pkg ; [ $? -eq 0 ] && echo ok, $pkg removed
> || echo $pkg not found, perhaps already removed?
>
> ciao
> vito
>
>
> [1] http://tldp.org/LDP/abs/html/exit-status.html
>
> >
> > Regards,
> > Frwa.
> >
> >
> > On Mon, Aug 26, 2013 at 11:41 PM, [email protected] <mailto:
> [email protected]> <[email protected] <mailto:[email protected]>>
> wrote:
> >
> > Dear frwa,
> >
> > I think you've installed the pf_ring rpm without using yum, so just
> type:
> >
> > rpm -ev $(rpm -qa | grep pfring)
> >
> > regards
> > -v
> >
> > On 08/26/2013 05:32 PM, frwa onto wrote:
> > > Dear All,
> > > I have installed pf_ring using the yum method
> previously. Now I want to remove it so I ran and got this.
> > >
> > > yum remove pfring* -y
> > > Loaded plugins: fastestmirror, security
> > > Setting up Remove Process
> > > No Match for argument: pfring-5.5.3-6016.x86_64.rpm
> > > Loading mirror speeds from cached hostfile
> > > * base: centos.mirror.iweb.ca <http://centos.mirror.iweb.ca> <
> http://centos.mirror.iweb.ca>
> > > * extras: centos.mirror.iweb.ca <http://centos.mirror.iweb.ca> <
> http://centos.mirror.iweb.ca>
> > > * updates: centos.mirror.iweb.ca <http://centos.mirror.iweb.ca> <
> http://centos.mirror.iweb.ca>
> > > No Packages marked for removal
> > >
> > > How to resolve this cause my pf_ring is still there? I want to
> install it from source now cause too many issue with the .rpm version.
> > >
> > >
> > > _______________________________________________
> > > Ntop-misc mailing list
> > > [email protected] <mailto:
> [email protected]>
> > > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> > >
> >
> > _______________________________________________
> > Ntop-misc mailing list
> > [email protected] <mailto:
> [email protected]>
> > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> >
> >
> >
> >
> > _______________________________________________
> > Ntop-misc mailing list
> > [email protected]
> > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> >
>
> _______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc