sudo yum remove php linux in aws

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












When I was trying to upgrade PHP version in amazon web server I got this kind of error. I'm trying to up upgrade PHP version 5.6 to 7.0 in amazon web server and I am using to putty to upgrade.



[root@cpanel ec2-user]# sudo yum remove PHP

Loaded plugins: priorities, universal-hooks, update-motd, upgrade-helper
No Match for argument: PHP
No Packages marked for removal






share|improve this question

























    up vote
    0
    down vote

    favorite












    When I was trying to upgrade PHP version in amazon web server I got this kind of error. I'm trying to up upgrade PHP version 5.6 to 7.0 in amazon web server and I am using to putty to upgrade.



    [root@cpanel ec2-user]# sudo yum remove PHP

    Loaded plugins: priorities, universal-hooks, update-motd, upgrade-helper
    No Match for argument: PHP
    No Packages marked for removal






    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      When I was trying to upgrade PHP version in amazon web server I got this kind of error. I'm trying to up upgrade PHP version 5.6 to 7.0 in amazon web server and I am using to putty to upgrade.



      [root@cpanel ec2-user]# sudo yum remove PHP

      Loaded plugins: priorities, universal-hooks, update-motd, upgrade-helper
      No Match for argument: PHP
      No Packages marked for removal






      share|improve this question













      When I was trying to upgrade PHP version in amazon web server I got this kind of error. I'm trying to up upgrade PHP version 5.6 to 7.0 in amazon web server and I am using to putty to upgrade.



      [root@cpanel ec2-user]# sudo yum remove PHP

      Loaded plugins: priorities, universal-hooks, update-motd, upgrade-helper
      No Match for argument: PHP
      No Packages marked for removal








      share|improve this question












      share|improve this question




      share|improve this question








      edited May 4 at 9:30









      Ankur S

      6692213




      6692213









      asked May 4 at 7:43









      sujith

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          we should give proper package name.First check which version of php installed.



          rpm -qa php*



          check the package installed and remove it.



          yum remove rh-php56



          or



          rpm -Uvh --nodeps php-<version>.rpm






          share|improve this answer





















          • Hi, thank you for your answer. I try it many times but same error.
            – sujith
            May 4 at 14:07











          • share the output of rpm -qa php*
            – SivaPrasath
            May 4 at 14:20










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441719%2fsudo-yum-remove-php-linux-in-aws%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          we should give proper package name.First check which version of php installed.



          rpm -qa php*



          check the package installed and remove it.



          yum remove rh-php56



          or



          rpm -Uvh --nodeps php-<version>.rpm






          share|improve this answer





















          • Hi, thank you for your answer. I try it many times but same error.
            – sujith
            May 4 at 14:07











          • share the output of rpm -qa php*
            – SivaPrasath
            May 4 at 14:20














          up vote
          1
          down vote













          we should give proper package name.First check which version of php installed.



          rpm -qa php*



          check the package installed and remove it.



          yum remove rh-php56



          or



          rpm -Uvh --nodeps php-<version>.rpm






          share|improve this answer





















          • Hi, thank you for your answer. I try it many times but same error.
            – sujith
            May 4 at 14:07











          • share the output of rpm -qa php*
            – SivaPrasath
            May 4 at 14:20












          up vote
          1
          down vote










          up vote
          1
          down vote









          we should give proper package name.First check which version of php installed.



          rpm -qa php*



          check the package installed and remove it.



          yum remove rh-php56



          or



          rpm -Uvh --nodeps php-<version>.rpm






          share|improve this answer













          we should give proper package name.First check which version of php installed.



          rpm -qa php*



          check the package installed and remove it.



          yum remove rh-php56



          or



          rpm -Uvh --nodeps php-<version>.rpm







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered May 4 at 9:19









          SivaPrasath

          4,80712545




          4,80712545











          • Hi, thank you for your answer. I try it many times but same error.
            – sujith
            May 4 at 14:07











          • share the output of rpm -qa php*
            – SivaPrasath
            May 4 at 14:20
















          • Hi, thank you for your answer. I try it many times but same error.
            – sujith
            May 4 at 14:07











          • share the output of rpm -qa php*
            – SivaPrasath
            May 4 at 14:20















          Hi, thank you for your answer. I try it many times but same error.
          – sujith
          May 4 at 14:07





          Hi, thank you for your answer. I try it many times but same error.
          – sujith
          May 4 at 14:07













          share the output of rpm -qa php*
          – SivaPrasath
          May 4 at 14:20




          share the output of rpm -qa php*
          – SivaPrasath
          May 4 at 14:20












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441719%2fsudo-yum-remove-php-linux-in-aws%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)