where has 'setup' gone?

General support questions including new installations
RobK
Posts: 11
Joined: 2010/02/11 16:28:27
Contact:

where has 'setup' gone?

Post by RobK » 2010/02/15 18:34:12

Under Centos 5.2 I used a cmd 'setup' which allowed me to change services and network etc, when I try to run this under 5.4 I get 'not found'
Where has it gone?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

where has 'setup' gone?

Post by gerald_clark » 2010/02/15 18:36:08

It is still called 'setup'
You probably have not become root properly.
Use:
su -
NOT
su

RobK
Posts: 11
Joined: 2010/02/11 16:28:27
Contact:

Re: where has 'setup' gone?

Post by RobK » 2010/02/15 21:45:44

tried that - still no luck.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: where has 'setup' gone?

Post by pschaff » 2010/02/15 22:54:30

Try this - 1st become [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]root[/url] then [code]rpm -q setup[/code]

If you get[code]package setup is not installed[/code]then[code]yum install setup[/code]and try again.

If it is found and you still can't run it, then show the results of[code]rpm -V setup
uname -rmi
rpm -q centos-release[/code]

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: where has 'setup' gone?

Post by chuina » 2010/02/15 22:57:14

My [b]rpm -q setup[/b] gives
[code]setup-2.5.58-7.el5[/code]
Try with above first.
If the package is not installed.Then
[code]yum install setup[/code]

Edit: [b]Phill[/b] already answered everything

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: where has 'setup' gone?

Post by pschaff » 2010/02/15 23:22:20

[quote]
chuina wrote:
...
Edit: [b]Phill[/b] already answered everything[/quote]
Great minds... Looks like I beat you by <200 seconds. Thanks for all your helpful posts, and better luck next time. ;-)

milosb
Posts: 661
Joined: 2009/01/18 00:39:15
Location: 44 49&#8242;14&#8243;N 20 27&#8242;44&#8243;E

Re: where has 'setup' gone?

Post by milosb » 2010/02/15 23:42:43

I'm sorry guys, but it seems to me pretty impossible for one not to have [b]setup[/b] package installed on his system, 'cause when I query the package, I get:
[code]
# rpm -ql setup
/etc/aliases
/etc/bashrc
/etc/csh.cshrc
/etc/csh.login
/etc/environment
/etc/exports
/etc/filesystems
/etc/fstab
/etc/group
/etc/gshadow
/etc/host.conf
/etc/hosts.allow
/etc/hosts.deny
/etc/inputrc
/etc/motd
/etc/mtab
/etc/passwd
/etc/printcap
/etc/profile
/etc/profile.d
/etc/protocols
/etc/securetty
/etc/services
/etc/shadow
/etc/shells
/usr/share/doc/setup-2.5.58
/usr/share/doc/setup-2.5.58/uidgid
/var/log/lastlog
[/code]

[b]RobK[/b], what you're looking for is more likely the package [b]setuptool[/b].

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: where has 'setup' gone?

Post by chuina » 2010/02/16 01:58:23

[b]milosb[/b] is correct.
cause
[code]$ rpm -ql setuptool
-----------------------------
/etc/setuptool.d/99system-config-network-tui
/etc/setuptool.d/99system-config-printer-tui
/etc/setuptool.d/99timeconfig
[b]/usr/bin/setup
/usr/sbin/setup[/b]
/usr/share/doc/setuptool-1.19.2
/usr/share/doc/setuptool-1.19.2/README
-----------------------------
[/code]
I think [b]setuptool[/b] is in the [b]Base[/b] group.

ToddAndMargo
Posts: 400
Joined: 2007/02/20 04:27:08
Location: Milky Way/Sol/Earth/USA/Nevada GMT-8

Re: where has 'setup' gone?

Post by ToddAndMargo » 2010/02/16 02:07:47

If all the above stuff does not work and it looks like you really do have setup installed, it could be that you have several programs called setup and you are getting the wrong one. Happens to me sometimes. Both ways too.

In which case try using the exact path "/usr/bin/setup" and see it that works.

HTH,
-T

RobK
Posts: 11
Joined: 2010/02/11 16:28:27
Contact:

Re: where has 'setup' gone?

Post by RobK » 2010/02/16 09:12:33

thanks for all your help.
I ran 'yum install setuptool' and now it works. :-D

Post Reply