Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: aegersz in Juni 19, 2017, 03:42:46 VORMITTAG

Titel: A quick way to find the actual mod that conflicts with one that wish to install
Beitrag von: aegersz in Juni 19, 2017, 03:42:46 VORMITTAG
in Linux anyway. Windows method may be possible if you read on.

this may not be the best place for this advice and it's very simple advice at that but it still may help someone ...

I must have too many mods on because i'm always running into patch or mod installation conflicts/errors so what i do is:

zgrep try_a_bit_of_the_code_that_failed_to_be_located /var/www/html/Packages/* (or wherever your compressed downloaded mods live).

a bit of trial and error may be involved.
Titel: Re: A quick way to find the actual mod that conflicts with one that wish to install
Beitrag von: Shambles in Juni 19, 2017, 03:53:41 VORMITTAG
Can you explain what zgrep is and how to run it from Windows?
Titel: Re: A quick way to find the actual mod that conflicts with one that wish to install
Beitrag von: aegersz in Juni 19, 2017, 03:55:48 VORMITTAG
sorry but I just changed the post as it's a Linux thing (in CentOS, anyway).

zgrep searches for character strings in compressed/zipped files.

this may help though:

http://www.fileseek.ca/Discussions/View/search-inside-zip-files/?ID=d54a533c-7bf0-4979-ae3c-5d0713108877
Titel: Re: A quick way to find the actual mod that conflicts with one that wish to install
Beitrag von: Shambles in Juni 19, 2017, 04:23:20 VORMITTAG
I've no idea how to use Linux but thanks for the grep explanation anyway.
Titel: Re: A quick way to find the actual mod that conflicts with one that wish to install
Beitrag von: aegersz in Juni 19, 2017, 04:26:01 VORMITTAG
neither did I until I built my forum.

you are welcome ... the link I posted tells you how to search for such strings in Windows using winrar.
Titel: Re: A quick way to find the actual mod that conflicts with one that wish to install
Beitrag von: Gluz in Juni 20, 2017, 09:21:33 NACHMITTAGS
You want a way to search through the compressed MOD files searching for a bit of code into the files in those MODs?

I think that zgrep as you say is the way to go, in any SO, even in Windows, you only need to download WinGNU32, that contains a lot of the GNU utilities that are available in Linux/Unix like grep and zgrep.
Titel: Re: A quick way to find the actual mod that conflicts with one that wish to install
Beitrag von: aegersz in April 06, 2021, 12:56:17 VORMITTAG
rough and ready but for zipped files change the grep string that you are looking for and try this as I have had some success with it searching through the Packages directory on CentOS:

for file in *.zip; do unzip -c "$file" | grep "ts=%4$d"; echo "---> last file read was $file"; done | less