LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2017, 05:15 PM   #16
Waris
Member
 
Registered: May 2017
Distribution: Centos 6,7 and Windows
Posts: 40

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by MensaWater View Post
If your responses ended with "IN A" after the host names it means they did NOT resolve so that may be your problem. Are your AD server and workstation in domain tang.com? If not did you type in the fully qualified domain name (FQDN) for each (i.e. servername.domainname)?

You're use of rpm command is slightly off.

rpm -qa will show ALL RPM packages - you can run "rpm -qa |grep systemd" to see all packages with systemd in the namme.

When you know the name of the package you can just specify that:
rpm -q systemd

You're not looking to see if you have exactly systemd-219-36.el7 but rather at least that version
So if for example you ran "rpm -q systemd" and it responded with systemd-219-19.el7_2.4.x86_64 that is version 219-19 which is earlier than 219-36 so you'd want to run "yum update systemd" to get the latest package.

On my test system doing that just now installed version 219-42. After the update "rpm -q systemd" now shows:
systemd-219-42.el7.x86_64

Since the link is restricted to RedHat subscribed users I can't put its contents here. It doesn't specifically talk about the issue you are having so may not be involved and the only reason I saw it was because I'd never noticed RHEL7 added that last item to hosts: line in nsswitch.conf before.

Thank you for the correction. Still fairly a newbie with Linux. But yes, I just ran rpm -qa systemd like you said it didnt get anything in return. which probably means it not install, im just afrade that it might change something if i install the systemd package. what do you think, rather what does it exactly do?And also, Yes the dig command, it ends with "IN A" after the host. So how could i go on about setting the DNS? Thank you so much for all the input, i really appreciate the help! Thank you!
 
Old 08-04-2017, 05:16 PM   #17
Waris
Member
 
Registered: May 2017
Distribution: Centos 6,7 and Windows
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MensaWater View Post
If your responses ended with "IN A" after the host names it means they did NOT resolve so that may be your problem. Are your AD server and workstation in domain tang.com? If not did you type in the fully qualified domain name (FQDN) for each (i.e. servername.domainname)?

You're use of rpm command is slightly off.

rpm -qa will show ALL RPM packages - you can run "rpm -qa |grep systemd" to see all packages with systemd in the namme.

When you know the name of the package you can just specify that:
rpm -q systemd

You're not looking to see if you have exactly systemd-219-36.el7 but rather at least that version
So if for example you ran "rpm -q systemd" and it responded with systemd-219-19.el7_2.4.x86_64 that is version 219-19 which is earlier than 219-36 so you'd want to run "yum update systemd" to get the latest package.

On my test system doing that just now installed version 219-42. After the update "rpm -q systemd" now shows:
systemd-219-42.el7.x86_64

Since the link is restricted to RedHat subscribed users I can't put its contents here. It doesn't specifically talk about the issue you are having so may not be involved and the only reason I saw it was because I'd never noticed RHEL7 added that last item to hosts: line in nsswitch.conf before.





Thank you for the correction. Still fairly a newbie with Linux. But yes, I just ran rpm -qa systemd like you said it didnt get anything in return. which probably means it not install, im just afrade that it might change something if i install the systemd package. what do you think, rather what does it exactly do?And also, Yes the dig command, it ends with "IN A" after the host. So how could i go on about setting the DNS? Thank you so much for all the input, i really appreciate the help! Thank you!
windows_10 Waris is online now
 
Old 08-04-2017, 05:27 PM   #18
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by Waris View Post
But yes, I just ran rpm -qa systemd like you said it didnt get anything in return. Thank you!
Note that
Code:
rpm -qa |grep systemd
is different from
Code:
rpm -qa systemd
.

And being that you are on CentOS. You almost certainly have systemd installed as systemd is the init system and is not trivial to replace on most systems.
 
Old 08-05-2017, 11:01 AM   #19
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
I fear you missed what I was saying. TheEzekialProject caught it.

My post was saying you can use rpm -qa to list all packages but must then pipe (|) into the grep command specifying the one you want (systemd in this case):
rpm -qa | grep systemd
--OR--
You can leave off the -a flag so it is only "rpm -q" at which point you can just give it the name of the package:
rpm -q systemd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSHing into Raspberry Pi Completely Clueless Linux - Networking 11 05-22-2013 06:32 PM
Need assistance SSHing into Fedora 14 when Fedora had no problem SSHing into Ubuntu theif519 Fedora 12 06-04-2011 02:34 PM
sshing questions bluknight43 Linux - Newbie 1 02-12-2005 09:06 PM
color xterm when sshing into another machine...? clockworks Linux - General 0 01-19-2004 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration