lara123's avatar

How i can run "composer update" command without updateding some Packages ?

please help :

0 likes
8 replies
lara123's avatar

@tomi but want run composer update command only ,and dont want all packages update ?

topvillas's avatar

You can fix the version number in composer.json.

Replace the wildcards and modifiers for minor versions with a fixed version.

For example, replace ...

"mockery/mockery": "0.9.*"

With ...

"mockery/mockery": "0.9.9"
1 like
lara123's avatar

@topvillas i don't want replace or update (some packages) when i run composer update command .

topvillas's avatar

Yeah, so fix the version numbers of the packages you don't want to update to a specific version and they won't update.

lara123's avatar

@topvillas i am using "tcg/voyager": "^0.11.5" this should i replace it to "tcg/voyager": "0.11.5"

Please or to participate in this conversation.