On May 05, 2016, I had removed some packages from my Ubuntu 14.04 desktop. Now I want to make a list of those packages which I had removed on that day. How can I do it using Terminal?
However, I can get these info from Ubuntu Software Center > History > Removals. But I'm wishing to get a plain text file.
Use this line:
cat /var/log/dpkg.log | grep "2016-05-05" | grep "remove" | grep -v "startup"
And for putting it into a file:
cat /var/log/dpkg.log | grep "2016-05-05" | grep "remove" | grep -V "startup" > removed-files.txt
There are surely multiple and maybe even more elegant ways of doing this, if you point them out I'll add them to my answer here.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다