Koozali.org: home of the SME Server

[SOLVED] Wordpress Contrib

Offline devtay

  • *
  • 145
  • +0/-0
[SOLVED] Wordpress Contrib
« on: March 12, 2017, 11:59:00 PM »
I installed the wordpress contrib (https://wiki.contribs.org/Wordpress) and had some trouble so I wanted to uninstall it. Unfortunately I did a bad job noting the dependencies involved and I want to make sure I don't remove something that is needed for the server to function. In particular I'm questioning these two packages:

libicu-4.2.1-14.el6.x86_64 from repo base
php-intl-5.3.3-48.el6_8.x86_64 from repo updates

Both show to be Dep-Install and installed at the same time as when I installed smeserver-wordpress.

This command
Code: [Select]
# yum remove smeserver-wordpress
Doesn't pull dependencies and I'm wanting to be sure I have a clean server to install the contrib on.

I've already removed:
wordpress-4.7.3-1.el6.noarch
php-IDNA_Convert-0.8.0-1.el6.noarch
php-simplepie-1.3.1-3.el6.noarch
1:php-getid3-1.9.13-1.el6.noarch
php-PHPMailer-5.2.22-1.el6.noarch

When I look at the yum history on each package, the "From Repo" line has me second guessing myself.
Code: [Select]
[root ~]# yum history package-info libicu-4.2.1-14.el6.x86_64
Loaded plugins: fastestmirror, smeserver
Transaction ID : 17
Begin time     : Sat Mar 11 22:49:51 2017
Package        : libicu-4.2.1-14.el6.x86_64
State          : Dep-Install
Size           : 19,519,528
Build host     : worker1.bsys.centos.org
Build time     : Tue May 10 19:22:06 2016
Packager       : CentOS BuildSystem <http://bugs.centos.org>
Vendor         : CentOS
License        : MIT and UCD and Public Domain
URL            : http://www.icu-project.org/
Source RPM     : icu-4.2.1-14.el6.src.rpm
Commit Time    : Wed Mar  2 06:00:00 2016
Committer      : Eike Rathke <erack@redhat.com>
Reason         : dep
Command Line   : install smeserver-wordpress --enablerepo=smecontribs
From repo      : base
Installed by   : root <root>
history package-info

Code: [Select]
[root ~]# yum history package-info php-intl-5.3.3-48.el6_8.x86_64
Loaded plugins: fastestmirror, smeserver
Transaction ID : 17
Begin time     : Sat Mar 11 22:49:51 2017
Package        : php-intl-5.3.3-48.el6_8.x86_64
State          : Dep-Install
Size           : 170,433
Build host     : worker1.bsys.centos.org
Build time     : Thu Aug 11 15:40:52 2016
Packager       : CentOS BuildSystem <http://bugs.centos.org>
Vendor         : CentOS
License        : PHP
URL            : http://www.php.net/
Source RPM     : php-5.3.3-48.el6_8.src.rpm
Commit Time    : Mon Jul 25 07:00:00 2016
Committer      : Remi Collet <rcollet@redhat.com>
Reason         : dep
Command Line   : install smeserver-wordpress --enablerepo=smecontribs
From repo      : updates
Installed by   : root <root>
history package-info

Any advice is appreciated.
« Last Edit: March 13, 2017, 04:28:43 AM by devtay »
You can't stop what's coming. It ain't all waiting on you.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Wordpress Contrib
« Reply #1 on: March 13, 2017, 12:56:03 AM »
devtay

something like
rpm -q --whatrequires libicu
rpm -q --whatrequires php-intl

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Wordpress Contrib
« Reply #2 on: March 13, 2017, 02:30:10 AM »
trying to install smeserver-wordpress on a test server ( not totally blank, but could give reasonable idea of what has been added first) :



Code: [Select]
Dependencies Resolved

=============================================================================================================
 Package                         Arch               Version                    Repository               Size
=============================================================================================================
Installing:
 smeserver-wordpress             noarch             1.2-9.el6.sme              smecontribs              28 k
Installing for dependencies:
 libicu                          x86_64             4.2.1-14.el6               base                    4.9 M
 php-IDNA_Convert                noarch             0.8.0-1.el6                smecontribs              35 k
 php-PHPMailer                   noarch             5.2.22-1.el6               smecontribs             134 k
 php-getid3                      noarch             1:1.9.13-1.el6             smecontribs             442 k
 php-intl                        x86_64             5.3.3-48.el6_8             updates                  76 k
 php-simplepie                   noarch             1.3.1-3.el6                smecontribs             465 k
 wordpress                       noarch             4.7.3-1.el6                smecontribs             6.3 M

Transaction Summary
=============================================================================================================
Install       8 Package(s)

so unless the dependencies were also needed by something else, you could rmeove them. Normally yum will throw an error or will remove also what depends on them if it came from a rpm.

Offline devtay

  • *
  • 145
  • +0/-0
Re: Wordpress Contrib
« Reply #3 on: March 13, 2017, 04:27:30 AM »
@janet

Thanks for the info. I was able to figure out both packages are unused.

@jean-philippe

I appreciate you trying this for me. I recall there being dependencies but I was thinking it was 6 instead of 8. That really helped me.

Here is what I did in case anyone else reads though this:

Code: [Select]
[root@ ~]# rpm -qa | grep php-intl
php-intl-5.3.3-48.el6_8.x86_64

[root@ ~]# rpm -q --whatrequires php-intl-5.3.3-48.el6_8.x86_64
no package requires php-intl-5.3.3-48.el6_8.x86_64

[root@ ~]# yum remove php-intl-5.3.3-48.el6_8.x86_64
Loaded plugins: fastestmirror, smeserver
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package php-intl.x86_64 0:5.3.3-48.el6_8 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================
 Package                             Arch                              Version                                    Repository                           Size
============================================================================================================================================================
Removing:
 php-intl                            x86_64                            5.3.3-48.el6_8                             @updates                            166 k

Transaction Summary
============================================================================================================================================================
Remove        1 Package(s)

Installed size: 166 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : php-intl-5.3.3-48.el6_8.x86_64                                                                                                           1/1
  Verifying  : php-intl-5.3.3-48.el6_8.x86_64                                                                                                           1/1

Removed:
  php-intl.x86_64 0:5.3.3-48.el6_8                                                                                                                         

Complete!

[root@ ~]# rpm -qa | grep libicu
libicu-4.2.1-14.el6.x86_64

[root@ ~]# rpm -qa --whatrequires libicu-4.2.1-14.el6.x86_64
no package requires libicu-4.2.1-14.el6.x86_64

[root@ ~]# yum remove libicu-4.2.1-14.el6.x86_64
Loaded plugins: fastestmirror, smeserver
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package libicu.x86_64 0:4.2.1-14.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================
 Package                             Arch                                Version                                   Repository                          Size
============================================================================================================================================================
Removing:
 libicu                              x86_64                              4.2.1-14.el6                              @base                               19 M

Transaction Summary
============================================================================================================================================================
Remove        1 Package(s)

Installed size: 19 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : libicu-4.2.1-14.el6.x86_64                                                                                                               1/1
  Verifying  : libicu-4.2.1-14.el6.x86_64                                                                                                               1/1

Removed:
  libicu.x86_64 0:4.2.1-14.el6                                                                                                                             

Complete!
You can't stop what's coming. It ain't all waiting on you.