특정 일에 제거한 패키지를 어떻게 나열합니까?


8

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.

답변:


7

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.

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.