Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Updates

  1. #1
    Join Date
    May 2009
    Posts
    22

    Default Updates

    I have installed my VPS with Centos + LAMPP

    my question is, how could i maintain application updates? like apt-get update/upgrade thing?

  2. #2
    Join Date
    Jun 2008
    Posts
    232

    Default

    The program you're looking for is yum.

    Personally, I don't know much about it, but I'm certain a quick google search on '+yum +howto' will find you all the answers you will need.

  3. #3
    Join Date
    Jul 2007
    Location
    127.0.0.1
    Posts
    392

    Default

    Quote Originally Posted by xMoDx View Post
    I have installed my VPS with Centos + LAMPP

    my question is, how could i maintain application updates? like apt-get update/upgrade thing?
    Right. With RedHat based distros, you can use:
    Code:
    yum update

  4. #4
    Join Date
    May 2009
    Posts
    22

    Default

    Quote Originally Posted by GuyPatterson View Post
    Right. With RedHat based distros, you can use:
    Code:
    yum update
    having some error:

    [root@host ~]# yum update
    Loaded plugins: fastestmirror
    Determining fastest mirrors
    base | 1.1 kB 00:00
    updates | 951 B 00:00
    primary.xml.gz | 136 kB 00:00
    updates 210/210
    addons | 951 B 00:00
    extras | 1.1 kB 00:00
    primary.xml.gz | 90 kB 00:00
    extras 298/298
    Setting up Update Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package pam.i386 0:0.99.6.2-4.el5 set to be updated
    ---> Package krb5-libs.i386 0:1.6.1-31.el5_3.3 set to be updated
    ---> Package authconfig.i386 0:5.3.21-5.el5 set to be updated
    ---> Package cups-libs.i386 1:1.3.7-8.el5_3.4 set to be updated
    ---> Package php-cli.i386 0:5.1.6-23.2.el5_3 set to be updated
    ---> Package audit-libs-python.i386 0:1.7.7-6.el5_3.3 set to be updated
    ---> Package php-mysql.i386 0:5.1.6-23.2.el5_3 set to be updated
    ---> Package php-common.i386 0:5.1.6-23.2.el5_3 set to be updated
    ---> Package audit-libs.i386 0:1.7.7-6.el5_3.3 set to be updated
    ---> Package glibc-headers.i386 0:2.5-34 set to be updated
    ---> Package glibc-common.i386 0:2.5-34 set to be updated
    ---> Package tzdata.noarch 0:2009f-1.el5 set to be updated
    ---> Package php.i386 0:5.1.6-23.2.el5_3 set to be updated
    ---> Package glibc-devel.i386 0:2.5-34 set to be updated
    ---> Package php-pdo.i386 0:5.1.6-23.2.el5_3 set to be updated
    ---> Package file.i386 0:4.17-15.el5_3.1 set to be updated
    ---> Package kernel-headers.i386 0:2.6.18-128.1.10.el5 set to be updated
    ---> Package glibc.i686 0:2.5-34 set to be updated
    Traceback (most recent call last):
    File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
    File "/usr/share/yum-cli/yummain.py", line 229, in user_main
    errcode = main(args)
    File "/usr/share/yum-cli/yummain.py", line 145, in main
    (result, resultmsgs) = base.buildTransaction()
    File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 647, in buildTra nsaction
    (rescode, restring) = self.resolveDeps()
    File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 704, in resolveD eps
    for po, dep in self._checkFileRequires():
    File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 939, in _checkFi leRequires
    if not self.tsInfo.getOldProvides(filename) and not self.tsInfo.getNewProvid es(filename):
    File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 414, in g etNewProvides
    for pkg, hits in self.pkgSack.getProvides(name, flag, version).iteritems():
    File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 300, in getPr ovides
    return self._computeAggregateDictResult("getProvides", name, flags, version)
    File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 470, in _comp uteAggregateDictResult
    sackResult = apply(method, args)
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 861, in getPro vides
    return self._search("provides", name, flags, version)
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in newFunc
    return func(*args, **kwargs)
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 837, in _searc h
    for pkg in self.searchFiles(name, strict=True):
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in newFunc
    return func(*args, **kwargs)
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 586, in search Files
    self._sql_pkgKey2po(rep, cur, pkgs)
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 470, in _sql_p kgKey2po
    pkg = self._packageByKey(repo, ob['pkgKey'])
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 413, in _packa geByKey
    po = self.pc(repo, cur.fetchone())
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 68, in __init_ _
    self._read_db_obj(db_obj)
    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94, in _read_d b_obj
    setattr(self, item, _share_data(db_obj[item]))
    TypeError: unsubscriptable object
    [root@host ~]#
    Last edited by xMoDx; 05-17-2009 at 11:07 AM.

  5. #5
    Join Date
    May 2009
    Posts
    22

    Default

    can anyone please check this error


    thanks in advance

  6. #6
    Join Date
    Dec 2007
    Posts
    1,141

    Default

    Try yum clean metadata and/or yum clean all to address this known yum bug.

  7. #7
    Join Date
    May 2009
    Posts
    22

    Default

    thanks it worked

    Updated: audit-libs.i386 0:1.7.7-6.el5_3.3 audit-libs-python.i386 0:1.7.7-6.el5_3.3 authconfig.i386 0:5.3.21-5.el5 cups-libs.i386 1:1.3.7-8.el5_3.4 file.i386 0:4.17-15.el5_3.1 glibc.i686 0:2.5-34 glibc-common.i386 0:2.5-34 glibc-devel.i386 0:2.5-34 glibc-headers.i386 0:2.5-34 kernel-headers.i386 0:2.6.18-128.1.10.el5 krb5-libs.i386 0:1.6.1-31.el5_3.3 pam.i386 0:0.99.6.2-4.el5 php.i386 0:5.1.6-23.2.el5_3 php-cli.i386 0:5.1.6-23.2.el5_3 php-common.i386 0:5.1.6-23.2.el5_3 php-mysql.i386 0:5.1.6-23.2.el5_3 php-pdo.i386 0:5.1.6-23.2.el5_3 tzdata.noarch 0:2009f-1.el5

  8. #8
    Join Date
    May 2009
    Posts
    22

    Default

    i need a FTP account for my web developer,

    what should i install to have a spare FTP account that can edit my /var/www/html directory but cant access other directory

    i believe giving my developer the root account is not a wise idea?

  9. #9
    Join Date
    Jul 2007
    Location
    127.0.0.1
    Posts
    392

    Default

    Quote Originally Posted by xMoDx View Post
    i believe giving my developer the root account is not a wise idea?
    You are correct, but providing FTP access is equally not a wise idea, either. Consider creating an sftp account to avoid having to install and maintain another inherently insecure daemon. sftp is already installed/running.

  10. #10
    Join Date
    Dec 2007
    Posts
    1,141

    Default

    The useradd documentation is the best place to start for information regarding user account creation - if you do not plan to grant your web developer SSH access, set the the new user shell to /dev/null

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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