If you were using screen, then you could go to copy mode Ctrl+a  [ and then type:
?libgnome-desktop
To keep searching for more instances press n for next and N for previous instance of searched string.
To exit copy mode press Esc.
Additionally with screen you could press space when in copy mode to start highlighting text and press space again to copy that highlighted text. This could be pasted at the prompt or anywhere else on the terminal input with Ctrl+a ].