On Tue, 07 Oct 2014, Abdelkader Belahcene wrote: > but the problem is > > 2) Have a version number less than the version in the Packages file. > > look at these packages: > > main/m/mutter/gir1.2-mutter-3.0_3.12.2-2_i386.deb > main/m/mutter/gir1.2-mutter-3.0_3.12.2-2+b1_i386.deb > > the sort gives gir1.2-mutter-3.0_3.12.2-2_i386.deb more recent, > but in fact > gir1.2-mutter-3.0_3.12.2-2+b1_i386.deb is more recent
That's because sort sorts lexically, not by version numbers. See dpkg --compare-versions '3.12.2-2' '<' '3.12.2-2+b1' && \ echo "Yes, -2+b1 is greater than -2." for example. -- Don Armstrong http://www.donarmstrong.com A people living under the perpetual menace of war and invasion is very easy to govern. It demands no social reforms. It does not haggle over expenditures on armaments and military equipment. It pays without discussion, it ruins itself, and that is an excellent thing for the syndicates of financiers and manufacturers for whom patriotic terrors are an abundant source of gain. -- Anatole France -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141007190327.gh23...@rzlab.ucr.edu