Find the answer to your Linux question:
Results 1 to 9 of 9
Hey, I'm working with a semi-dedicated server with CentOS installed. I'm trying to install a mail server following these instructions How to set up a mail server on a GNU ...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    4

    [SOLVED] installing packages

    Hey,

    I'm working with a semi-dedicated server with CentOS installed. I'm trying to install a mail server following these instructions How to set up a mail server on a GNU / Linux system

    As I'm newish to Linux I'm having problems installing packages using commands for Ubuntu. I tried installing the apptitude package using - 'yum makecache' then 'yum apt' but when I type aptitude at the command line it doesn't recognise it?

    Thanks in advance for any help (and patience)

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,392
    You should be able to pretty much replace the 'apt-get' that you're used to with 'yum install', the CentOS equivalent. Just make sure that you run the installer as root.

    Alternatively you could install yumex (i.e. 'yum install yumex') and install packages with a nice gui tool.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    You said centOS, so here is a link for a goldmine of information on redhat systems.

    Red Hat Enterprise Linux

    it also has a section on setting up mail stuff and whatnot.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  4. #4
    Just Joined!
    Join Date
    Sep 2008
    Posts
    4
    That 'Red Hat Enterprise Linux' link shows everything with a GUI. I'm connecting remotely using SSH so it isn't much help.
    Basically I'm asking how to execute the following Ubuntu command on centOS,
    'aptitude install mysql-client mysql-server',
    I should probably mention that my Ubuntu knowledge isn't great either!
    thanks again

  5. #5
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    you could try yum install mysql-client mysql-server
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  6. #6
    Just Joined!
    Join Date
    Sep 2008
    Posts
    4
    I get this with yum install mysql-client mysql-server.....

    Loading "fastestmirror" plugin
    Setting up Install Process
    Setting up repositories
    update 100% |=========================| 951 B 00:00
    base 100% |=========================| 1.1 kB 00:00
    addons 100% |=========================| 951 B 00:00
    extras 100% |=========================| 1.1 kB 00:00
    Loading mirror speeds from cached hostfile
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    No Match for argument: mysql-client
    No Match for argument: mysql-server
    Nothing to do
    .....
    I assume that means it couldn't find the package where ever it looked?

  7. #7
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,392
    Whenever you want to find a package, you can do:

    Code:
    yum list available|grep <part_of_the_name>
    it can take several seconds until the output is seen, but it will shorten the list. The 'grep' command does a case sensitive search, but most packages are in lower case.

    For MySQL, try:

    Code:
    yum list available|grep sql
    that should reveal the package name for you.
    Linux user #126863 - see http://linuxcounter.net/

  8. #8
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    yum list available | egrep -i sql

    the egrep is unnessisary (though i prefer it because it extends the regex) but the -i make it search ignoring case sensitivity. but you could just do

    yum search mysql

    and it would do the same. If your not using regex special charecters (.*$^[^]{,}) or whatever else, than grep is just another process that the command has to go through. for something this small the cpu usage is irrelivant, but since i do alot of scripting, i try to squeze out all the efficiency i can, and it's always fun to learn stuff
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  9. #9
    Just Joined!
    Join Date
    Sep 2008
    Posts
    4
    ok thanks guys got it installed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...