Guest User

Untitled

a guest
Apr 29th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. root@petest1:~# echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" >> /etc/apt/sources.list.d/trusty.sources.list
  2. root@petest1:~#
  3. root@petest1:~# apt-get update
  4. [....]
  5. root@petest1:~# $(which echo) -e "\nPackage: *\nPin: release n=trusty\nPin-Priority: -10" >> /etc/apt/preferences.d/redis-trusty
  6. root@petest1:~#
  7. root@petest1:~# $(which echo) -e "\nPackage: redis-server redis-tools\nPin: release n=trusty\nPin-Priority: 501" >> /etc/apt/preferences.d/redis-trusty
  8. root@petest1:~#
  9. root@petest1:~# apt-get -V -s install -y redis-server
  10. Reading package lists... Done
  11. Building dependency tree
  12. Reading state information... Done
  13. The following NEW packages will be installed:
  14. redis-server (2.2.12-1build1)
  15. 0 upgraded, 1 newly installed, 0 to remove and 196 not upgraded.
  16. Inst redis-server (2:2.2.12-1build1 Ubuntu:12.04/precise [amd64])
  17. Conf redis-server (2:2.2.12-1build1 Ubuntu:12.04/precise [amd64])
  18. root@petest1:~# apt-get update
  19. [.....]
  20. root@petest1:~# apt-get -V -s install -y redis-server
  21. Reading package lists... Done
  22. Building dependency tree
  23. Reading state information... Done
  24. The following extra packages will be installed:
  25. libjemalloc1 (2.2.5-1)
  26. redis-tools (2.8.4-2)
  27. The following NEW packages will be installed:
  28. libjemalloc1 (2.2.5-1)
  29. redis-server (2.8.4-2)
  30. redis-tools (2.8.4-2)
  31. 0 upgraded, 3 newly installed, 0 to remove and 196 not upgraded.
  32. Inst libjemalloc1 (2.2.5-1 Ubuntu:12.04/precise [amd64])
  33. Inst redis-tools (2:2.8.4-2 Ubuntu:14.04/trusty [amd64])
  34. Inst redis-server (2:2.8.4-2 Ubuntu:14.04/trusty [amd64])
  35. Conf libjemalloc1 (2.2.5-1 Ubuntu:12.04/precise [amd64])
  36. Conf redis-tools (2:2.8.4-2 Ubuntu:14.04/trusty [amd64])
  37. Conf redis-server (2:2.8.4-2 Ubuntu:14.04/trusty [amd64])
  38. root@petest1:~#
Advertisement
Add Comment
Please, Sign In to add comment