Results 1 to 6 of 6

Thread: Command for re-installing a pattern

  1. #1
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    1,034

    Default Command for re-installing a pattern

    Hello.

    I look for a way to re-install the pattern mail_server including configuration files as if nothing was never installed.

    I could not achieve this from yast gui.

    I tried to remove the pattern, then delete the config files ( the files that i guess belonging to the pattern ) ; then re-installing the pattern give many errors when restarting because some files was missing (re-install was incomplete) in spamassassin.

    I tried to download all the rpm files in a specific folder ( zypper in --download-only ) then install from the folder using
    Code:
    rpm --install --force --hash --replacefiles -v *.rpm
    but the config files was not replaced and i have not found any config file like "some_file.some_suffix.rpmsave" ( yast2save, rpmnew... ).

    Any help is welcome.
    Thanks for helping. JCD
    __________
    server leap 15.0 -- ASUS g75vw KDE leap 15.0 -- ASUS g750JZ Optimus KDE leap 15.1 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,845
    Blog Entries
    14

    Default Re: Command for re-installing a pattern

    Make sure you remove the configuration folders in /etc.
    Then run
    Code:
    sudo zypper in -f YOURPATTERPACKAGE
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    1,034

    Default Re: Command for re-installing a pattern

    Quote Originally Posted by Knurpht View Post
    Make sure you remove the configuration folders in /etc.
    ......
    ......
    As I said, I have tried that but misses some files and the reinstall failled.

    And if you don't know all the configuration folders and/or files to delete ?
    It would be simpler if a single command , or options, would do the job.

    It is not logical not to be able to undo what we have installed ourselves.
    Thanks for helping. JCD
    __________
    server leap 15.0 -- ASUS g75vw KDE leap 15.0 -- ASUS g750JZ Optimus KDE leap 15.1 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,273
    Blog Entries
    2

    Default Re: Command for re-installing a pattern

    Quote Originally Posted by Knurpht View Post
    Make sure you remove the configuration folders in /etc.
    Then run
    Code:
    sudo zypper in -f YOURPATTERPACKAGE
    The above only works for some patterns which are actually packages(Not all patterns have an associated package).

    When referencing patterns, and not actual packages
    Code:
    zypper in -f -t pattern Pattern_name 
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,273
    Blog Entries
    2

    Default Re: Command for re-installing a pattern

    Quote Originally Posted by jcdole View Post
    As I said, I have tried that but misses some files and the reinstall failled.

    And if you don't know all the configuration folders and/or files to delete ?
    It would be simpler if a single command , or options, would do the job.

    It is not logical not to be able to undo what we have installed ourselves.
    No need to move configuration files unless you want to save them (From the original post, that doesn't seem to be the case).
    When you do a "force re-install" you will over-write everything including configuration files.
    When you do an update, you preserve configuration files.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    1,034

    Default Re: Command for re-installing a pattern

    Quote Originally Posted by tsu2 View Post
    No need to move configuration files unless you want to save them (From the original post, that doesn't seem to be the case).
    When you do a "force re-install" you will over-write everything including configuration files.
    When you do an update, you preserve configuration files.

    TSU
    Not at all.

    As i said , I tried :
    Code:
    rpm --install --force --hash --replacefiles -v *.rpm
    Does not replace current installed config files.

    Code:
    zypper install --force  -t pattern PATTERN_PACKAGE
    Does not replace current installed config files.
    Thanks for helping. JCD
    __________
    server leap 15.0 -- ASUS g75vw KDE leap 15.0 -- ASUS g750JZ Optimus KDE leap 15.1 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

Posting Permissions

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