Posted on 12 May 2018 09:05:56 (4 months ago)
If you want to upgrade your PHP and you need list of all addititonal package you need to install in your new version then there is a command which save all your packages in your current working directory. You just need to type the below command. This will save your current packages to
packages.txt file in your working directory.
dpkg -l | grep php | tee packages.txt