I am going to be reinstalling my linux installation and I want to make sure I have installed everything that is currently on my current installation.
I know that
Will list all the packages on your system and I have piped it through awk in this way:
Code:
sudo dpkg -l | awk '{ print $2 }'
And that gives me a list of all the packages in a long list, which is fine, but I would like to make this list into one long line, e.g. instead of
package
package
package
package
...
I have
package package package package...
Is this possible? I was thinking that maybe I need to pipe it through sed as well, something like:
But I cannot seem to figure out the logic on the sed part.